none
The query cannot be run for the following DataObject: GetUserProfileByName RRS feed

  • General discussion

  • Error Message:
    The query cannot be run for the following DataObject: GetUserProfileByName
    InfoPath cannot run the specified query.
    The SOAP response indicates that an error occurred:
    A user with the account name  DisplayName DOMAIN\username User  could not be found. ---> An error was encountered while retrieving the user profile.
    <detail><ErrorCode xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService">UserCannotBeFound</ErrorCode><ErrorMessage xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService">An error was encountered while retrieving the user profile.</ErrorMessage></detail>
    Data Connection: (Web Service URL) _vti_bin/UserProfileService.asmx?WSDL
    I am trying to input a value into the AccountName queryField of my Data Connection listed above, but I must have an impopper value or syntax. 
    Can someone tell me what syntax i need?
    I have tried to hard code the value in the following combinations...
    username
    domain\username
    DOMAIN\username
    domain\accountname
    with no luck.
    I am triggering the infopath data source query with a button click
    Have you had this issue, can you help?
    Thanks
    schuess
    ( TAGS: InfoPath 2010, SharePoint 2010, SOAP, User Profile Service, )
    Wednesday, January 11, 2012 9:18 PM

All replies