Domain Trust was working previously with the form even with code. After some tweaks to the code it seems it doesn't like it any more. I've since republished the form with Full Trust and converted data connections.
It fails with the following error:
System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.GetResponseHelper(WebRequest request, DataAdapterTimer dataAdapterTimer, DataAdapterCredentials credentials, Stopwatch timer, ExecWebRequestExceptionState state, String adapterName, Boolean isQuery)
at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.ExecWebRequestSync(XPathNavigator inputSubDOM, Boolean[] inputUseDataset, XPathNavigator resultsSubDOM, Boolean resultUseDataset, XPathNavigator errorsSubDOM, Uri serviceUrl, Uri soapAction, Int64 timeOutMillisec, Solution solution, Document document, String name, Boolean isQuery, DataAdapterTimer dataAdapterTimer, DataAdapterCredentials credentials, Boolean useDcl, Boolean useProxy, Boolean useSelf)
An entry has been added to the Windows event log on the server.
Event ID:5337
Further reading reveals:
Event Type: Warning
Event Source: Office SharePoint Server
Event Category: Forms Services Runtime - Business Logic
Event ID: 5337
Date: 2009-07-27
Time: 13:54:58
User: N/A
Computer: <servername>
Description:
Business logic failed due to an exception. (User: DOMAIN\username, Form Name: Formname_v.0.3, IP: , Request: http://address.domain.com/_layouts/FormServer.aspx?XsnLocation=http://address.domain.com/FormServerTemplates/Formname_v.0.3.xsn&SaveLocation=http://address.domain.com/FormLibrary&Source=http://address.domain.com/FormLibrary/Forms/AllItems.aspx&DefaultItemOpen=1, Form ID: urn:schemas-microsoft-com:office:infopath:Formname-v-0-3:-myXSD-2009-05-13T13-53-20, Type: WebException, Exception Message: The remote server returned an error: (500) Internal Server Error.
Server was unable to process request. --> Index was outside the bounds of the array.
The remote server returned an error: (500) Internal Server Error.
Server was unable to process request. --> Index was outside the bounds of the array.)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Which is essentially the same as the previous event error & leaves me none the wiser really...