I recreated the data connection several times to no avail.
I have now gone back to the initial idea of just using the ID field. However, I am now experiencing issues with this.
I publish the form, clear the form cache in Infopath of the published template, open the form, fill it in, submit it and it all works fine.
Then when I try to open another one to fill in I get the following error.
The query cannot be run for the following DataObject: GetID
InfoPath cannot run the specified query.
InfoPath
either cannot connect to the data source, the service has timed out, or the
server has an invalid certificate.
If I clear the cache again it works, until the next time I open the form.
I have tried on different machines but to no avail, the same thing occurs.
A search on google has not turned up any answers.
Any help would be very appreciated.
Thanks.