The exception is occurring in our production environment sporadically since we upgraded to Aspose.Pdf 9.3.0.0 from a very old version. (This exception is also easily reproducible in 10.0.5.0). Full stack trace and a snippet of .net code is below. Sample data file is attached. Removing random rows form the sample file causes the error to go away and the output to successfully generate. Please help. Thanks
Unhandled Exception: System.ArgumentException: Invalid index in Rows indexer: -1
at Aspose.Pdf.Generator.Rows.get_Item(Int32 index)
at ?♥‼.↑♦♫.??☼(Pdf doc, Section currentPart, Table table, Single availableHei
ght, Single& breakAreaHeight, Boolean rowInNewPage)
at ?♥‼.↑♦♫.¶?☼(Pdf doc, Section currentPart, HeaderFooter hf, Table table, ←♥
♫ assignInfo, ←♥♫ bakAssignInfo, ♣♦♫ useType, Boolean isFirst, ↓♦♫& breakTableNe
xtPart)
at ?♥‼.→♦♫.??☼(Pdf doc, Section currentPart, HeaderFooter hf, Table table, ←♥
♫ assignInfo, ♣♦♫ useType, Boolean isFirst, ↓♦♫& breakTableNextPart)
at ?♥‼.◄♦♫.??☼(Pdf , Section , ←♥♫ )
at ?♥‼.?♥♫.§?☼(Pdf )
at ?♥‼.?♥♫.??☼(§♠♫ , Pdf )
at Aspose.Pdf.Generator.Pdf.GetBuffer()
new Aspose.Pdf.License().SetLicense("Aspose.Pdf.lic");var pdf = new Aspose.Pdf.Generator.Pdf();using (var file = File.OpenRead("56A.xml")) { pdf.BindXML(file, null);// uncomment to see the exception//pdf.GetBuffer();// no exception, no output either pdf.Save("output.pdf"); }
Unhandled Exception: System.ArgumentException: Invalid index in Rows indexer: -1
at Aspose.Pdf.Generator.Rows.get_Item(Int32 index)
at ?♥‼.↑♦♫.??☼(Pdf doc, Section currentPart, Table table, Single availableHei
ght, Single& breakAreaHeight, Boolean rowInNewPage)
at ?♥‼.↑♦♫.¶?☼(Pdf doc, Section currentPart, HeaderFooter hf, Table table, ←♥
♫ assignInfo, ←♥♫ bakAssignInfo, ♣♦♫ useType, Boolean isFirst, ↓♦♫& breakTableNe
xtPart)
at ?♥‼.→♦♫.??☼(Pdf doc, Section currentPart, HeaderFooter hf, Table table, ←♥
♫ assignInfo, ♣♦♫ useType, Boolean isFirst, ↓♦♫& breakTableNextPart)
at ?♥‼.◄♦♫.??☼(Pdf , Section , ←♥♫ )
at ?♥‼.?♥♫.§?☼(Pdf )
at ?♥‼.?♥♫.??☼(§♠♫ , Pdf )
at Aspose.Pdf.Generator.Pdf.GetBuffer()