I am receiving an error when I click a button in my form running in browser, developed using InfoPath 2010. I don't get this error while filling the form in Filler.
I have multilevel repeating groups in main data source and have many secondary data sources and multiple views and code for some of the events. There are no unused data sources in the form. I get the error when I try to delete a record from top level repeating group, with a new record added to lower level repeating group and modify the newly added record. If I don't add the new record or if I don't modify the newly added record, I don't get this error.
I can see it as XmlSchemaValidationException from the Event Log but am unable to trace where the error is occurred. While debugging the code, I don't see any error in the event and no errors added in the Errors member, still get this error pop up in the form.
Event log has an entry saying
Error 12/9/2010 1:31:41 AM InfoPath Forms Services 5374 Runtime - Business Logic
There was a form postback error. (User: 0#.f|membershipprovider|user, Form Name: MyForm, IP: , Request: http://myserver:2000/_layouts/FormServer.aspx?XmlLocation=/Library/FormName.xml&Source=/pages/home.aspx&DefaultItemOpen=1, Form ID: urn:schemas-microsoft-com:office:infopath:MyForm:MySchema.xsd, Type: XmlSchemaValidationException, Exception Message: Schema information could not be found for the node passed into Validate. The node may be invalid in its current position. Navigate to the ancestor that has schema information, then call Validate again.)
Please help!! I am fighting with this error for 3 days now.
Thanks in advance.
Suresh