I have an infopath form, which uses both SOAP and REST web services. When I work inside InfoPath form preview, everything works well. The problem is when I publish the form and use it from the IE browser, even though I am referencing the exact same web services.
What happens in detail is the following.
- On form load, I query REST service that I have created and it populates a repeating table. At this point, it works perfectly and the form opens.
- When I try to execute that same REST service any time after form is opened, I get "A Microsoft SharePoint Server State Service error occurred while processing your request. For more information, contact your server farm administrator." In the logs, I only get "StateManager.GetState() Locked data" as the exception.
The server where the REST is referring to is the same as where the sharepoint/infopath resides.
SOAPs submit work fine at all times.
Anyone else had similar scenario?
UPDATE TO THE QUESTION: Looking at the google chrome developer's tools, I find an error "Pagerequestmanager Cannot Be Initialized More Than Once" when I try to run the REST call the second time, the time of the error described above. It looks like it might be a postback issue, but no clue how to solve it in infopath with no code.