BizTalk 2013 and SharePoint 2013 Integration Issue (401:Unauthorized)

Posted on Updated on

During the initial set-up of SharePoint 2013 adapter with BizTalk 2013 there may be scenario when you get errors such as  : The remote server returned an error: (401) Unauthorized.

Image

The adapter failed to transmit message going to send port “XXXX” with URL “wss://ServerXXX:XX/sites/XX/xxxxx/xxxx“. It will be retransmitted after the retry interval specified for this Send Port. Details:”[System.Net.WebException] The remote server returned an error: (401) Unauthorized.

This error was triggered by the Windows SharePoint Services receive location or send port with URI “wss://ServerXXX:XX/sites/XX/xxxxx/xxxx“.

Windows SharePoint Services adapter event ID: 12310”.

When validating you see that the user under which the adapter host is running has all the rights on the web site and the document library and still you see the issue.

Out of curiosity the user is given rights on SharePoint database and WS_WPG groups also but still the problem persists.

The problem here is because the user is not having access to the root of the SharePoint server. In this case to http://ServerXXX:XX.

When BizTalk 2013 WSS adapter tries to access the document library it first tries to access the root and then dives in to the libraries for the action. A look at the SharePoint logs will give the necessary information.

Once the user under which the host of WSS adapter is running gets access to the root site, BizTalk 2013 will start communication to and from SharePoint document libraries. The permission can be the least privileged one .i.e Visitors.

Advertisements

4 thoughts on “BizTalk 2013 and SharePoint 2013 Integration Issue (401:Unauthorized)

    nidhi said:
    September 11, 2014 at 8:09 am

    ServerName level means ? i am already login to that server and i am able to access the root site but when i am sending message it is giving me error in biztalk .

      Ritu Raj responded:
      September 11, 2014 at 8:11 am

      Server level means if a sp admin will browse http://ServerName and then go to site settings and under that add BT user to the visitors group.

    nidhi said:
    September 11, 2014 at 7:37 am

    user under which the host of WSS adapter is running has access to the root site,even then its coming

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s