I have the form querying a my secondary data source. I save the file to a SharePoint site and when I go out to edit the form I receive the below error.
Form template: http://servername/Forms/template.xsn
InfoPath cannot open the selected form because of an error in the form's code.
The following error occurred:
'msoxd__getUserProfile__firstname' is undefined
File:script.js
Line:24
Looks like it's trying to retrieve the data again.