cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tomgardzinski
Level: Powered On

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
Power Automate Staff Audrie-MSFT
Power Automate Staff

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
Highlighted
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
Level: Powered On

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
Level: Powered On

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

Yes

TopShelf-MSFT
Level 10

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

Power Automate Staff Audrie-MSFT
Power Automate Staff

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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,707)