I have an InfoPath form that was working.
It uses the SharePoint GetUserProfileByName method to get the user’s details to populate fields on the form. The form, that was working, recently stopped working giving the error: “The following query failed: GetUserProfileByName” and words to the effect that the user is unauthorised.
Strangely enough it turns out the solution was related to a previous post here where a web service could not be accessed because the web.config dynamic value for the web service set the site back to the root site.
My form was pointing to the root site for the web service.…