Question : GetUserProfileByName Issue after form is submitted

I am using GetUserProfileByName to pull in the name of the user who fills out the form. I have changed the fields using this data source to Read Only after the form has been submitted. However, when I open those forms after they have been submitted by someone else, I get the following error:

"InfoPath contacted a data source but failed to receive data.  The form will load without the requested data.  The query cannot be run for the following DataObject: GetUserProfileByName.  
InfoPath cannot run the specified query."

Is there any way to stop this error?

Thanks.

Answer : GetUserProfileByName Issue after form is submitted

Random Solutions  
 
programming4us programming4us