cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Robg
Frequent Visitor

On-Prem Gateway Issue - PowerBINotAuthorizedException

Hi All

I have an issue sharing a PowerApp with users within our Environment and hopefully someone else has come across this and has found a resolution.

 

List resides in SP2013, I have a Gateway installed and the site which houses this list is a Datasource.

I have checked:

Gateway/DataSource permissions - person shared with has "Can use" permissions.

Can edit on sp2013 list.

These are the scenarios I have run:

I have proceeded with the following scenarios:
User A:
Given rights to Gateway “Can Use”
Added rights (Edit) to Target SharePoint list.
Waited 15miuntes (for possible timer jobs etc)
App shared with the user.
User A got link, opened it and was prompted to log in … used email address and Password.
Error: PowerBINotAuthorizedException
 
User b:
Given rights to Gateway “Can Use”
Added rights (Edit) to Target SharePoint list.
Waited 15miuntes (for possible timer jobs etc)
Got user to connect to data source (on prem SharePoint list) by creating an application (not saving and closing)
App shared with the user.
User opened app, got notification of rights required (this is the screen where others would have to log in), clicked allow and worked perfectly
 
Creator of App has Can Use / share rights for the gateway/datasource

 

Thoughts please?

Cheers

Rob

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @Robg ,

Could you please share a bit more about the error message within your app?

 

Based on the error message that you mentioned, it seems to tell that the User A do not have enough permission to access your On-premises Data Gateway.

 

Please check if you have shared proper permission of your On-premises Data Gateway to your User A. In addition, please also check if the User A has owned PowerApps Plan 1 license at least for his account.

 

Currently, within PowerApps/Power Automate, if you want to create a connection to On-premises Connector, you must own PowerApps Plan 1 license at least.

Note: Currently, On-premises Data Gateway is not avaiable for Office 365 license.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
v-xida-msft
Community Support
Community Support

Hi @Robg ,

Could you please share a bit more about the error message within your app?

 

Based on the error message that you mentioned, it seems to tell that the User A do not have enough permission to access your On-premises Data Gateway.

 

Please check if you have shared proper permission of your On-premises Data Gateway to your User A. In addition, please also check if the User A has owned PowerApps Plan 1 license at least for his account.

 

Currently, within PowerApps/Power Automate, if you want to create a connection to On-premises Connector, you must own PowerApps Plan 1 license at least.

Note: Currently, On-premises Data Gateway is not avaiable for Office 365 license.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Robg
Frequent Visitor

Hi Kris

the app is basically as explained. Gateway is shared directly to the user with “Can Use” permissions.

The error message only contains “PowerBINotAuthorizedException” and the session ID.

If it is licensing how come I can get another user to set up an app to the same SharePoint on prem list (using the same gateway) and then they can open the application (and only get prompted for permissions not login)? 

Just so you know the user that could open it has a E3 license and I have an E5 ..... (I really hope that this is not licensing)

Sorry this is confusing me 

Thanks

Rob

brett1
Frequent Visitor

@Robg Did you get this issue resolved?

I am having a similar issue.

Robg
Frequent Visitor

Hi @brett1 

Yes it was sorted, for me the issue was that to consume an on-prem gateway that all users required a PowerApps Plan 2 license because this is a premium connector (was free initially).

Good luck

Rob

 

SarathSub
Regular Visitor

Hello,

Could you please provide more details on how you used licensing to solve this issue?

Below is my scenario.

 

1. Created an app connecting to SharePoint using On-Premises Data Gateway. The development and testing was done using trial license (Power Apps Per User Plan trial).

2. The app and gateway was shared with 2 more users for testing, who also activated the trial license, tested the app and all worked fine.

3. The app and gateway was shared with a 3rd user, who started facing the exact same issue discussed above.

 

So, could you please tell me what are the steps you took to resolve this?

Did you enable 'pass assignment' for your app, then shared with relevant users, which auto-assigned the 10$ licenses to them? Is that how it worked?

Robg
Frequent Visitor

Hi 

The way for me to get past this was to purchase the Power App Plan 2 (Per user plan $40)

Once the license was applied to the user that needed the gateway access, it all worked fine.

Good luck and hope this helps 😄

 

SarathSub
Regular Visitor

Hello, thanks for your response.

 

But, were you able to figure out why it works for one user with trial license, but doesn't for another user with the same trial?

SP2019Admin
Helper II
Helper II

I got the same problem today. I have one account able to access the PowerApp with on-premise data gateway while all the other accounts cannot. Some of them have trial license expired, some are new registered for a trial. All have different behavior and no way to tell the real status.

 

Why Microsoft tend to provide a generic error "PowerBINotAuthorizedException"? It could means everything. I have tried type in a wrong password it also give me same error.

 

If it is license issue it should tell me in error message. 

 

My manager ask whether it is license issue and should we purchase a license. I don't know.

 

Hello @SP2019Admin,

 

Please try entering the username a little different while creating the connection.

That is, instead of abc@xyz.com (where abc is the username and xyz is the domain name), try providing xyz\abc as the username.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,495)