SharePoint 2016: InfoPath form load issue "An error occurred while trying to connect to a Web service."

Mohamed Abdullah 1 Reputation point
2022-03-02T09:49:46.507+00:00

179235-78.jpg

179206-79.jpg

179207-80.jpg

179208-81.jpg

179199-82.jpg

179147-83.jpg

179159-84.jpg

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,633 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. CaseyYang-MSFT 10,456 Reputation points
    2022-03-03T05:51:14.263+00:00

    Hi @Mohamed Abdullah ,

    Here is a similar issue for reference: Infopath querying a data source via web services.

    You could try to add Host entry on both WFE and problem went away for good. The WFE IP address and same portal site.
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. sadomovalex 3,631 Reputation points
    2022-03-03T15:41:02.443+00:00

    try to open browser network tab and check which exact web service call failed

    0 comments No comments

  3. Mohamed Abdullah 1 Reputation point
    2022-03-06T14:08:30.953+00:00

    @sadomovalex

    180451-87.jpg

    All requests completed without errors

    Heading

    Logs:
    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (GET:http://Contoso.SharePoint.com/_layouts/15/FormServer.aspx?XsnLocation=http://Contoso.SharePoint.com/Employee_Registration/Forms/template.xsn&SaveLocation=http://Contoso.SharePoint.com/Employee_Registration&ClientInstalled=false&DefaultItemOpen=1&Source=http://Contoso.SharePoint.com/Employee_Registration/Forms/AllItems.aspx?InitialTabId=Ribbon%25252EDocument&VisibilityContext=WSSTabPersistence) 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (GET:http://Contoso.SharePoint.com/_layouts/15/FormServer.aspx?XsnLocation=http://Contoso.SharePoint.com/Employee_Registration/Forms/template.xsn&SaveLocation=http://Contoso.SharePoint.com/Employee_Registration&ClientInstalled=false&DefaultItemOpen=1&Source=http://Contoso.SharePoint.com/Employee_Registration/Forms/AllItems.aspx?InitialTabId=Ribbon%25252EDocument&VisibilityContext=WSSTabPersistence) 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Request Management ai2q3 High Reached maximum number of failed machines based on ping results for this routing group 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Site Cache az4z8 Medium Looking up SPSite by ID 3b6b01cc-c210-47d7-bfb2-afc58e8e5c00 in memory. 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Asp Runtime avwhz Medium SPRequestModule.BeginRequestHandler End 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 Web Content Management Publishing aytib Medium ObjectCachePerRequest Global:True, Enabled:False 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Claims Authentication bjkuz Medium Using input cookie name. CookieName: 'FedAuth'. 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Authentication Authorization a7r51 Medium SPSite as SystemAccount: 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Claims Authentication a1n25 High Token is for a windows account. 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Audience Validation a9fy7 Medium The audience uri loads a web application matches. AudienceUri: 'http://Contoso.SharePoint.com/SitePages/Feedback.aspx', InputWebApplicationId: 'a2093973-6373-4b43-a8a2-38023981d78e', InputUrlZone: 'Default'. 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Audience Validation a9fy6 Medium The absolute uri validation succeeded. AudienceUri: 'http://Contoso.SharePoint.com/SitePages/Feedback.aspx'. 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Application Authentication bjvyg Medium SPApplicationAuthenticationModule: Clear outgoing token context from SpThreadContext 4c1327a0-2d56-f014-8a43-0c09580897f4

    03/06/2022 13:40:29.41 w3wp.exe (0x8A14) 0x5AE0 SharePoint Foundation Asp Runtime avwh6 Medium SPRequestModule.PostAuthenticateRequestHandler Begin 4c1327a0-2d56-f014-8a43-0c09580897f4

    0 comments No comments

  4. Saleh Ashrafi 0 Reputation points
    2023-02-08T21:03:14.1033333+00:00

    Hi,

    You must have some works,

    1-Remove tick for Automatically.... (Picture No 3)

    2-Disable Loopbackcheck in registery of SharePoint Server

    3-Add in HOSTS your server and IP valid address

    Be lucky

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.