Free Support Forum - aspose.com

"No Row At Position 1" Error after Upgrading Aspose.Words

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.

Hi

Thanks for your request. Could you please provide a simple code that will allow us to reproduce the problem? We will check the issue and provide you more information.

Best regards,

This is it:

doc.MailMerge.RemoveEmptyRegions = true;

doc.MailMerge.ExecuteWithRegions(dsMerge);

This issue has to do with the SETs and REFs that are in the document. I believe it is the same issue as this post reported on 12-6:

http://www.aspose.com/community/forums/post/347053/updating-of-the-set-fields-with-an-empty-value-does-not-work-properly.aspx

Hi

Thank you for additional information. I cannot reproduce the problem on my side with dummy data. Could you please also attach your data source here for testing? You can export your dataset to XML and attach it here. We will check the issue and provide you more information.

Also, I would suggest you to try with the latest version of Aspose.Words. You can download it from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Best regards,

I am not sure how I am going to get the result set in XML, but I will try.

I did take 10.7.0 and it does the same thing.

Attached are the three regions involved with this document. I am not an XML guy, so if you need just one file I am sure you know how to peice it together.

Hi

Thank you for additional information. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

Any estimate on when a fix will be available?

Hi

Thanks for your inquiry. Unfortunately, at the moment I cannot provide you any estimate regarding this issue. Our development team will analyze the issue and then we will provide you an estimate

Best regards,

The issues you have found earlier (filed as WORDSNET-5624) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.