PowerDocu icon indicating copy to clipboard operation
PowerDocu copied to clipboard

Error message: length (-1) must be a non-negative value. (Parameter length*) Actual value was -1.

Open hvitaliy opened this issue 1 year ago • 1 comments

Hello Modery,

Could you please assist me with this issue?

I have got following error message: An error has occurred. Error message: length (-1) must be a non-negative value. (Parameter length*) Actual value was -1. Details: at System.ArgumentOutOfRangeException.ThrowNegative[Tl(T value. String paramName) at System.ArgumentOutOfRangeException.ThrowlfNegative[T](T value, String paramName) at System.String.ThrowSubstringArgumentOutOfRange(lnt32 startlndex, Int32 length) at System.String.Substring(lnt32 startlndex. Int32 length) at PowerDocu.Common.AppParser.extractContextVariableNames(String code) in C:\Users\rene\GitHub\PowerDocu-Release\PowerDocu\modules\PowerDo cu.Common\PowerDocu.Common\AppParser.cs:line 4% at PowerDocu.Common.AppParser.CheckForVariables(ControlEntity controlEntity, String input) in C:\Users\rene\GitHub\PowerDocu-Release\PowerDocu\modules\PowerDo cu.Common\PowerDocu.Common\AppParser.cs:line 349 at PowerDocu.Common.AppParser.parseControl(List'1 properties) in C:\Users\rene\GitHub\PowerDocu-Release\PowerDocu\modules\PowerDo cu.Common\PowerDocu.Common\AppParser.cs:line 161 at PowerDocu.Common.AppParser.parseControl(List'1 properties) in C:\Users\rene\GitHub\PowerDocu-Release\PowerDocu\modules\PowerDo cu.Common\PowerDocu.Common\AppParser.cs:line 135 at PowerDocu.Common.AppParser.parseAppControls(Stream appArchive) in C:\Users\rene\GitHub\PowerDocu-Release\PowerDocu\modules\PowerDo cu.Common\PowerDocu.Common\AppParser.cs:line 114 at PowerDocu.Common.AppParser..ctor(String filename) in C:\Users\rene\GitHub\PowerDocu-Release\PowerDocu\modules\PowerDo cu.Common\PowerDocu.Common\AppParser.cs:line 42 at PöwerDocu.AppDocumenter.AppDocumentationGenerator.GenerateDoc umentation(String filePath, String fileFormat, Boolean documentDefaultChangesOnly, Boolean documentDefaults, String wordTemplate, String outputPath) in C:\Users\rene\GitHub\PowerDocu-Release\PowerDocu\PowerDocu.AppD ocu menter\AppDocu mentationGenerator.cs:line 18 at PowerDocu.SolutionDocumenter.SolutionDocumentationGenerator.Gene rateDocumentation(String filePath, String fileFormat, Boolean documentDefaultChangesOnly, Boolean documentDefaults, String flowActionSortOrder, String wordTemplate, String outputPath) in C:\Users\rene\GitHub\PowerDocu-Release\PowerDocu\PowerOocu.Soluti onDocumenter\SolutionDocumentationGenerator.cs:line 24 at PowerDocu.GUI.PowerDocuForm.SelectZIPFileButton_Click(Object sender, EventArgs e) in C:\Users\rene\GitHub\PowerDocu-Release\PowerDocu\PowerDocu.GUI\P owerDocuForm.cs:line 65 "

Thanks in advance.

hvitaliy avatar Mar 15 '24 08:03 hvitaliy

Hi @hvitaliy , can you try the latest version and see if it is working (I expect it to still fail), and post any additional error information here (latest release contains some more error details, which will help with troubleshooting)

modery avatar Aug 27 '24 02:08 modery