Power Apps failed to upload files to SharePoint. Error message: Siteurl cannot be null or empty. Please ensure valid SharePoint site is configured or contact your administrator.

Yake Liu 25 Reputation points
2025-11-06T23:46:55.4533333+00:00

Hi,

We have been experiencing a file uploading issue for two weeks and it started suddenly. I am from a local team that use power apps product. I am not working in the Admin centre in our organisation.

We have a Power Apps and allows users to upload file in the attachment tab. This file uploading function keep popping up error message when users upload files: 'Siteurl cannot be null or empty. Please ensure valid SharePoint site is configured or contact your administrator.' The users sometimes can upload successfully (rarely) and this success seems doesn't depends on specific user or specific time or specific changes we made to fix it. Thus, the problem seems to be intermittent. However, the issue happens to all the users except for me. I can always upoad files successfully. Given that my access includes system customiser, which is more than the other users. I am not very sure if this is the reason. But we are unable to give all the users access of system customiser.

Me and our Power Platform Admin centre has discussed this issue. From the information the Admin centre provided, when a user upload files, there is a folder created automatically in SharePoint side and the files are saved in the folder. The Admin centre has checked that the folders are created successfully everytime when the users try to upload files. But still we got the error mentioned above. Our Admin centre suspect it's an intergation problem between Power Apps and SharePoint, but they have no clue how to resolve it.

I have attached the error message and when the error happen to this post. Has anyone come across this issue or experienced something similar? I’d really appreciate any suggestions or assistance. 2025-11-07 10_15_36-Early Terminations Requests_ Information _Power Apps — Mozilla Fire.png

2025-11-07 10_44_14-Chat _ Microsoft Teams.png

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} vote

Answer accepted by question author
  1. AlexDN 7,430 Reputation points Microsoft External Staff Moderator
    2025-11-07T02:42:01.4733333+00:00

    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

    1. Validate SharePoint Sites configuration
      • In Document Management Settings, select your SharePoint site and click Validate to ensure the URL is correct.
    2. Check user privileges
      • Ensure affected users have Read and Append To permissions on:
      • SharePoint Site
      • SharePoint Document Location
    3. Inspect Document Location records
      • Confirm fields like absoluteurl and sitecollectionid are not null. If they are, recreate or correct them via the Document Management wizard.
    4. 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. undefined


3 additional answers

Sort by: Most helpful
  1. Yake Liu 25 Reputation points
    2025-11-10T03:56:30.57+00:00

    Placeholder

    0 comments No comments

  2. Yake Liu 25 Reputation points
    2025-11-14T00:35:29.07+00:00

    Hi @AlexDN and @Kai-Ex ,

    Thanks for your responses and support. I was tied up with other tasks over the past few days.

    I’ve confirmed that the permissions are configured correctly. I also discovered something that may be useful for you to understand: users are able to upload files successfully the day after their initial failed attempts on the same application record. I’m not sure about the exact minimum timing of waiting, but for example, a user who couldn’t upload at around 5 PM yesterday was able to upload the file successfully at 10 AM this morning.

    Appreciate your help again! Have a lovely day.

    Many thanks,

    Yake


  3. Alexander Kuppek 1 Reputation point
    2025-12-11T15:38:39.35+00:00

    Any solution for the issue as I'm experiencing similar issues recently?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.