locked
An error occurred querying a data source Infopath GetUserProfileByName error RRS feed

  • Question

  • Hello,

    On load InfoPath calling UserProfileService.asmx Service and Operation GetUserProfileByName in SharePoint 2016

    User profile service is configured properly and working as expected in Centeral Admin

    in Log file 

    System.Net.WebException: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator. ---> System.NullReferenceException: Object reference not set to an instance of an object.   

    at Microsoft.Office.InfoPath.Server.SolutionLifetime.UserProfileWebServiceRedirectionBase.LoadProfileData(UserProfile userProfile)   

    at Microsoft.Office.InfoPath.Server.SolutionLifetime.UserProfileWebServiceRedirectionBase.GetUserProfileByNameInternal(String userName)   

    at Microsoft.Office.InfoPath.Server.SolutionLifetime.GetUserProfileByNameWebServiceRedirection.Execute()   

    at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.HandleInternalWebService(SPSite site, Uri destination, String name, XPathNavigator inputSubDOM)   

    at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.ExecWebRequestSync(XPathNavigator inputSubDOM, Boolean[] inputUseDataset, XPathNavigator resultsSubDOM, Boolean resultUseDataset, XPathNavigator errorsSubDOM, Uri serviceUrl, Uri soapAction, Int64 timeOutMillisec, DataAdapter adapter, Document document, DataAdapterCredentials credentials, Boolean useDcl, Boolean useProxy, Boolean useSelf)     -

    -- End of inner exception stack trace ---   

    at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.ExecWebRequestSync(XPathNavigator inputSubDOM, Boolean[] inputUseDataset, XPathNavigator resultsSubDOM, Boolean resultUseDataset, XPathNavigator errorsSubDOM, Uri serviceUrl, Uri soapAction, Int64 timeOutMillisec, DataAdapter adapter, Document document, DataAdapterCredentials credentials, Boolean useDcl, Boolean useProxy, Boolean useSelf) StackTrace:

    at Microsoft.Office.Server.Native.dll: (sig=6c4ca56c-11c8-496a-928c-154da6eb5c50|2|microsoft.office.server.native.pdb, offset=285ED)

    at Microsoft.Office.Server.Native.dll: (offset=2EA5E)

    Thanks,

    Monday, November 5, 2018 9:05 PM

All replies