I was wondering if anyone could help me with the error I am experiencing.
I am in Sharepoint and Infopath 2010
I created a Sharepoint List and then published an associated InfoPath form using the Customize Form button in the ribbon.
When I try to add items to the list through the Infopath form, everything works fine.
However, when I go to the actual Sharepoint list itself and I try to add, view or edit items in the list, I get an error in a popup window that says "There has been an error while loading the form" and it gives me a correlation ID. When I view the correlation ID in the ULS logs, this is what I see:
Critical:
The form template failed to load. (User: 25339, Form Name: Template, IP: , Request: http://xxxxx/PWA/Lists/Document Control/AllItems.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:list:-AutoGen-2011-07-06T20:06:20:327Z, Type: ArgumentException, Exception Message: Value does not fall within the expected range.)
I know the error and exception message is not very descriptive, but was wondering if any of you had thoughts on where I should look to resolve this error.
When I go to List Settings and disassociate the Sharepoint list from the Infopath form, I am able to add, view, and edit items in the Sharepoint list again.
I have configured this in a pre-prod and sandbox environment. It works in our sandbox environment, but not in pre-prod. From what I can tell, things seem to be set up the same.
Any thoughts you may have would be greatly appreciated. Thanks!