Hi Oliver,
I have tried setup table permission for Account, Contact, SharePoint site, Document Location. (Permission to : Read, Roles: Authenticated Users, Global access) and still the same error.
I have tried building a model driven app and open the same form. It is working fine and I can upload/download documents to/from SharePoint. So I think it is purely Power Page issue.
The error message [Adxstudio.Xrm.SharePoint.SharePointResult.get_CanWrite()] indicate something do not have Write permission.
However there is no Write permission. I am not sure what the writer saw when he wrote it on 09/20/2024:
I have also verified the App Reg in Azure Portal. The App reg "PPMI-powerpagesmanagedidentity-xxxxxxxxxxxx" API have Sites.FullControl.All on SharePoint.
The most weird thing is it was working on my Power Page site for a few minutes at the beginning. I have tried created a new env, a new site, new SP site cannot make it work again. The same error for everything I tried.
It is really painful to work with Microsoft.