cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tomgardzinski Helper IV
Helper IV

Error occurred on the server. Server response: Access is denied (Exception from Hresult: ....)

Capture.JPG

Can anyone provide any tips on the following error after users receive this error?

This only happens when other users (not me) are using the powerapp. I have ensured that users have edit capabilities to the sharepoint list that is being used as the datasource.

Any help or pointers would be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Automate
Power Automate

Re: Error occurred on the server. Server response: Access is denied (Exception from Hresult: ....)

This is a server error (from the data source). Please check the following to clear up the error:

 

1. Check that the user(s) receiving the error have the appropriate rights to the record. This goes beyond just having access to the site and the list, it also involves ensuring they have the correct rights for what they are attempting to do with the data (such as edit, delete, create records). In this case, any files that are locked (such as in-place records) would also return this message.

 

2. Check that the app is not attempting to load supplemental data which the app consumer may not have access to. This occurs often in OnStart and OnLoad expressions if you are building collections while screens are loading. Remember, the end user must have access to all of the data connections in the app, expecially those involved in submit or patch functions to avoid unexpected server-side errors (click on the View menu and then on Datasources) to review your connections.

 

3. You may find it helpful to check user permissions and return your own custom messages. 

Check out these docs: 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-datasourceinfo

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-showerror

Check out this video: 

https://www.youtube.com/watch?v=M_URDG2oCWE

 

Thank you,

Audrie

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Re: Error occurred on the server. Server response: Access is denied (Exception from Hresult: ....)

Hello, this sounds like the app user does not have access to the datasource(s) used within the app.
tomgardzinski Helper IV
Helper IV

Re: Error occurred on the server. Server response: Access is denied (Exception from Hresult: ....)

I have ensured users have at minimum "contribute" access to the sharepoint list.

Anonymous
Not applicable

Re: Error occurred on the server. Server response: Access is denied (Exception from Hresult: ....)

Do they also have access to the SharePoint site which the list is part of?
tomgardzinski Helper IV
Helper IV

Re: Error occurred on the server. Server response: Access is denied (Exception from Hresult: ....)

Yes

TopShelf-MSFT Community Champion
Community Champion

Re: Error occurred on the server. Server response: Access is denied (Exception from Hresult: ....)

adding in @Audrie-MSFT to assist with this error message question

 

@TopShelf-MSFT

Highlighted
Power Automate
Power Automate

Re: Error occurred on the server. Server response: Access is denied (Exception from Hresult: ....)

This is a server error (from the data source). Please check the following to clear up the error:

 

1. Check that the user(s) receiving the error have the appropriate rights to the record. This goes beyond just having access to the site and the list, it also involves ensuring they have the correct rights for what they are attempting to do with the data (such as edit, delete, create records). In this case, any files that are locked (such as in-place records) would also return this message.

 

2. Check that the app is not attempting to load supplemental data which the app consumer may not have access to. This occurs often in OnStart and OnLoad expressions if you are building collections while screens are loading. Remember, the end user must have access to all of the data connections in the app, expecially those involved in submit or patch functions to avoid unexpected server-side errors (click on the View menu and then on Datasources) to review your connections.

 

3. You may find it helpful to check user permissions and return your own custom messages. 

Check out these docs: 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-datasourceinfo

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-showerror

Check out this video: 

https://www.youtube.com/watch?v=M_URDG2oCWE

 

Thank you,

Audrie

View solution in original post

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,049)