We just updated a customer with our app that includes the new version of Aspose.Words.dll (10.5.0.0). When we execute MailMerge.ExecuteWithRegions() using the attached document template, Aspose is generating the following error:
Message: There is no row at position 1.
Stack Trace:
at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
at xe86f37adaccef1c3.x615b80dcc88fc837.GetValue(String fieldName, Object & fieldValue)
at xe86f37adaccef1c3.xc5c3f438428cb03b.xb7e46440d2a34d6d(x561fa53c007d3597 xe01ae93d9fe5a880, FieldMergingArgs& xfbf34718e704c6bc)
at xfbd1009a0cbb9842.x561fa53c007d3597.x67bf65e8693cdf2e(xc5c3f438428cb03b xa4d52e34b62b5495)
at Aspose.Words.Fields.Field.x42a25ae95099edb8(x5e36356bc92c609b x0f7b23d1c393aed9)
at Aspose.Words.Fields.Field.x295cb4a1df7a5add(x5e36356bc92c609b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x4e3cfc222c92cda7(Field xe01ae93d9fe5a880, x5e36356bc92c609b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xd9ffa68c877a30cb.xe332a1e8ad1c863d()
at xfbd1009a0cbb9842.xe11422ab90fb5f3b.x90f31a16bab0c7f9()
at xfbd1009a0cbb9842.x2d380f6141585930.x2408a6db33935c93()
at xfbd1009a0cbb9842.x985dd08fd338eeea.x1f490eac106aee12(x2d380f6141585930 xbce90b56ab411c23)
at xfbd1009a0cbb9842.x985dd08fd338eeea..ctor(Field field, x5e36356bc92c609b updateContext, x6ed66b5cf8da2955 switchResolver)
at xfbd1009a0cbb9842.x5e36356bc92c609b.x496cb6c60c307cd1()
at Aspose.Words.Fields.Field.x42a25ae95099edb8(x5e36356bc92c609b x0f7b23d1c393aed9)
at Aspose.Words.Fields.Field.x295cb4a1df7a5add(x5e36356bc92c609b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xfedf115fd9c03862.x4e3cfc222c92cda7(Field xe01ae93d9fe5a880, x5e36356bc92c609b x0f7b23d1c393aed9)
at xfbd1009a0cbb9842.xbf9ddf72e1283af9.x18dfca7c5fd2402f()
at xfbd1009a0cbb9842.xfedf115fd9c03862.xdd6cf0348a23f220(xcf417e2db4fe9ed3 xe00c282e1a49fcfb)
at xe86f37adaccef1c3.xc5c3f438428cb03b.xdeeb682062ef79a5()
at xe86f37adaccef1c3.xc5c3f438428cb03b.xd5da23b762ce52a2(MailMerge x2a99de81295e7f29, IMailMergeDataSource xef1769c4fe6ae4ca, Boolean xc9c7b90943167aed)
at xe86f37adaccef1c3.xc5c3f438428cb03b.x714821359c2a8f33()
at xfbd1009a0cbb9842.xfedf115fd9c03862.xdd6cf0348a23f220(xcf417e2db4fe9ed3 xe00c282e1a49fcfb)
at xfbd1009a0cbb9842.xfedf115fd9c03862.xdf269951086089ce(x6435b7bbb0879a04 xa942970cc8a85fd4)
at xe86f37adaccef1c3.xc5c3f438428cb03b.xdeeb682062ef79a5()
at xe86f37adaccef1c3.xc5c3f438428cb03b.xd5da23b762ce52a2(MailMerge x2a99de81295e7f29, IMailMergeDataSource xef1769c4fe6ae4ca, Boolean xc9c7b90943167aed)
at Aspose.Words.Reporting.MailMerge.ExecuteWithRegions(IMailMergeDataSourceRoot dataSourceRoot)
at KCMS.DAL.MailMerge.MakeASingleFile(Object FileNumberOrReferralId, DataSet& dsMerge, String rootUncKey, FileInfo templateFileInfo, String dateTimeSuffix, String separateDocID, String documentCategory, String includeInCourtTransfer, String eventCode) in c:\inetpub\wwwroot\PbK47\App_Code\DAL\MailMerge.cs:line 1243
at KCMS.DAL.MailMerge.MakeASplittableFile(Object FileNumberorReferralID, Document doc, DataSet& dsMerge, String rootUnc, FileInfo templateFileInfo, String dateTimeSuffix, String documentCategory, String includeInCourtTransfer, String eventCode) in c:\inetpub\wwwroot\PbK47\App_Code\DAL\MailMerge.cs:line 1197
at KCMS.DAL.MailMerge.CreateCaseDocsFromEvent(String TemplateFile, String FileNumber, Decimal EventSeqNo, DateTime EventDate, String DocketCode, DateTime DocketDate, Boolean IncludeCodefendants, String documentCategory, String witnesses, Int64 ProgramSequenceNumber, String SubpoenaFlag, String includeInCourtTransfer, String eventCode) in c:\inetpub\wwwroot\PbK47\App_Code\DAL\MailMerge.cs:line 447
at Core_EventEntry.AddCaseEvent() in c: \inetpub\ wwwroot\ PbK47\ Core\ EventEntry.aspx.cs: line 2327
at Core_EventEntry.btnAddEvent_Click(Object sender, EventArgs e) in c: \inetpub\ wwwroot\ PbK47\ Core\ EventEntry.aspx.cs: line 736
I am not sure what else to look at. This customer was not having this issue prior to receiving the new dll.