December 30, 2009

Infopath: Deleted row information cannot be accessed through the row

I had cleared the contents of my repeating table using code then I received this message after submitting the dataset to a webservice:

"InfoPath cannot submit the form. An error occurred while the form was being submitted.The SOAP response indicates that an error occurred on the server:System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.DeletedRowInaccessibleException: Deleted row information cannot be accessed through the row. at System.Data.DataRow.GetDefaultRecord()"

Solution:

Go to Tools > Data Connections.

Select your main query connection and click Modify. Uncheck the 'Include change information when submitting data' option.

The code used to clear the repeating table can be found at http://www.bizsupportonline.net/blog/2009/08/clear-reset-fields-infopath-3-lines-code/

Hope this helps!

No comments:

Post a Comment