401 Error Querying GetUserProfileByName - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

401 Error Querying GetUserProfileByName

Last post 02-14-2022 08:08 AM by dapklp. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-11-2022 09:03 AM

    401 Error Querying GetUserProfileByName

    I converted an InfoPath 2013 form to FV and I'm getting "Query Failed - An error occurred querying the data connection GetUseProfileByName - Details: The request failed with status 401." The thing is, click "OK" and the finishedLoading rule to set Command to [ concat("GetUserProfileByName /properties=WorkPhone;Title /source=siteusers /user=", userName()) ] - the same rule I use in other successful FV conversions, successfully populates the Initiator Preferred Name, UserName, E-mail, First Name, and Last Name as well as Current Preferred Name and Current E-mail. Any ideas?
  • 02-14-2022 07:51 AM In reply to

    Re: 401 Error Querying GetUserProfileByName

    I am going to guess that your data connection is set to run on load. You can check that by modifying the data connection and on the last screen make sure the checkbox to run the query when the form is opened is not selected.
    Hilary Stoupa

  • 02-14-2022 08:08 AM In reply to

    Re: 401 Error Querying GetUserProfileByName

    You know when you have made that change so many times, you are absolutely sure you did it here too? Yup...that's what happened. Thanks for the reminder. I unselected on load (for reals this time) and the space time continuum is now restored.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.