cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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.
Highlighted
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.

Highlighted
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?
Highlighted
Helper IV
Helper IV

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

Yes

Highlighted
Anonymous
Not applicable

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

 

@Anonymous

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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,878)