web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / On-premises data gatew...
Power Apps
Unanswered

On-premises data gateway - SharePoint 2013 unauthorized 401

(0) ShareShare
ReportReport
Posted on by 14

I have installed and configured the on-premises data gateway on on of our SharePoint 2013 server (Windows 2008 R2). The gateway is visible in PowerApps and is working because I'm able to connect to on-prem SQL server. But connecting to on-prem SharePoint 2013 doesn't work and says 401 Unauthorized.

 

SharePoint site is using SSL and is path based. Login I'm using is correct and able to visit SharePoint site that returns 401 error.

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    on at

    Hi LukasNespor,

     

    Could you please share more details about the error message, when did it pop out, under Add New Connection in Browser, or when Trying to New an App with the SharePoint connections?

    Please make sure the User account used for the SharePoint Connection is authorized to the SharePoint site that you would like to connect, also make sure the proper gateway is selected:

    15.PNG

    A reference: 

    Support for on-premises SharePoint lists

     

    For the SharePoint site that could be accessed through Browser, could you please confirm it again with the Account used to create the SharePoint connection?

     

    If the error message occurred when trying to create a new App with SharePoint connection, then please make sure the user account has the proper permission to access the site level which specified under the site URL.

    16.PNG

    Add some additional reference: 

    On-premises data gateway in PowerApps

     

    Regards

  • LukasNespor Profile Picture
    14 on at

    Error message is just "401 UNAUTHORIZED" with correlation id. It pops out when I try to "Connect to a SharePoint site" (creating new App). Creating connection (where I can select proper gateway) is working but connecting to https://portal.domain.com/sites/somesite ends with error. The account I'm using has access to site and is also able to visit the site in browser. The account is farm admin and has Full control through User policy on web application.

     

    02.png

     01.png

     

    01.png

  • v-micsh-msft Profile Picture
    on at

    Hi LukasNespor,

     

    I saw your SharePoint input site URL is the following:

    https://portal.domain.com/sites/workflows/mxxx

    How about change the SharePoint URL to the following format?

    https://portal.domain.com/sites/

    See if this would make any difference.

    Regards

     

  • LukasNespor Profile Picture
    14 on at

    If you mean to add slash to the end of url then no, it doesn't help.

  • v-micsh-msft Profile Picture
    on at

    Hi LukasNespor,

     

    What is your current situation?

     

    Please take a try to modify the URL with the following format:

    https://portal.domain.com/

    This would list the available source under the top site, check to see if this would work.

     

    If issue still insists, please reply back and I will try to involve others to take a further look.

    Regards

  • LukasNespor Profile Picture
    14 on at

    Hi,

    I have found that the issue is with SharePoint itself. Different SharePoint farm and same Office 365 tenant works well. Firewall is turned off . Are there any prerequisities that the server does not meet?

     

    Windows Server 2008 R2 Standard

    SharePoint 2013 Ent CU February 2016 (15.0.4797.1000)

  • v-micsh-msft Profile Picture
    on at

    Hi LukasNespor,

     

    Thanks for the update.

    I will try to involve others who is familar with this to take a further investigation, there might be some time delay.

     

    Appreciate your understanding and patience.

     

    Regards

  • LukasNespor Profile Picture
    14 on at

    Hi,

    were you able to invole others? Still the same error:

    401 UNAUTHORIZED

    ID relace: 6acceb07-e92d-17b5-0d6f-1149765c65d6

     

    Thanks

  • alejandrol Profile Picture
    6 on at

    I'm having the same problem.

    Any solution for this?

  • v-micsh-msft Profile Picture
    on at

    Hi @LukasNespor,

     

    Apologizes.

    I will forward this again to check the status.

    Regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard