I'm converting an old old Infopath form (Archived) so that we can still view the data if needed.
On my finishedLoading rules, I set "AccountName" to "substring-after(userName(), "0#.w|")" then I set "Command" to "concat("GetUserProfileByName /properties=WorkPhone;Title /source=siteusers /user=", userName())"
These are the same 2 conditions I use in all of my current forms - the difference here is that I only use one People-Picker for the initial load (see rules above) and for the Requestor's Manager and the Associate's Manager , if not the same person.
In my current forms, I have more than one people picker and on the Manager People Picker (for instance), I set a rule for myFields > queryFields > s0:GetUserProfileByName to CONDITION: None - Rule runs when field changes and ACTION: Set "Command" = "concat("GetUserProfileByName /properties=WorkPhone;Title /dsname=GetUserProfileByName /source=siteusers /user=", .)" then set PreferredName, UserName,etc.
So I placed this rule on the only "AccountName" field I have and I receive this error message: Query Failed - An error occurred querying the data connection GetUserProfileByName. Details: The request failed with status 401 "OK"
Not sure what I need to do differently. I really don't need the people pickers for Requestor's Manager and Associate's Manager to work for future occurrences of this form: I just want to view the current data without errors. This is not a Web form and I need to use Internet Explorer because other browsers produce the error stating I must use Microsoft InfoPath to view the form. As we all know - IE is on its last leg. I was hoping I could convert the form just enough to be viewable in FV as an archive library.
Any suggestions? DAP