Dear @Yake Liu,
Thank you for posting your question in the Microsoft Q&A forum.
I understand that You have a Power Apps solution that lets users upload files to SharePoint via the Attachments/Documents tab. For the past two weeks, most users see the error “Siteurl cannot be null or empty” when uploading files, while you (with System Customizer access) can upload successfully every time.
To better assistance, could you please provide following information:
- Are you using a model-driven app with the Documents tab or a canvas app with the Attachments control?
- What is the configuration method for SharePoint integration, through Document Management Settings or a custom connector?
- Does the issue affect all entities/tables or only one?
- What security roles do the affected users have, and what role do you have?
- What changes (if any) were recently made to SharePoint site URLs, document libraries, or Power Apps customizations?
- What happens when users try to upload directly in SharePoint? can they upload files without issues?
- What environment is this running in? Production, Sandbox, or a Trial environment?
- What browser or client are users using when the error occurs?
- What is the pattern of failure? Does it happen on all records or only certain records?
In the meantime, I recommend some steps below
- Validate SharePoint Sites configuration
- In Document Management Settings, select your SharePoint site and click Validate to ensure the URL is correct.
- Check user privileges
- Ensure affected users have Read and Append To permissions on:
-
SharePoint Site -
SharePoint Document Location
- Inspect Document Location records
- Confirm fields like
absoluteurlandsitecollectionidare not null. If they are, recreate or correct them via the Document Management wizard.
- Confirm fields like
- Verify SharePoint access
- Users must have permission to the target SharePoint library/folder.
Please understand that our initial response does not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.
Your detailed response will help us diagnose and investigate the issue more efficiently. If I misunderstood what you’re looking for, feel free to let me know or share a screenshot. I’d be happy to help further!
Thank you for your cooperation.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.