I'm running into an issue with submitting InfoPath forms as part of a K2 workflow. The strange thing is that the error only occurs in the test environment, but works fine in the development and production environments. The only difference between dev and test is that the dev environment contains all components (K2 server, SharePoint, etc.) and in test and production the components are on separate machines.
The error I'm receiving varies for some reason - sometimes it's "An error occurred querying a data source" and other times "An error occurred while trying to connect to a Web service". As far as error logs go, the errors all seem to be related to a (401) error, "Unauthorized".
I've read some proposed solutions saying I should set "DisableLoopbackCheck" to 1, but that's already the value in all environments. (Source: http://www.k2underground.com/forums/p/14003/41347.aspx) At this point I'm really at a loss as to what is going on. As far as I recall nothing has changed since the process was last working.