Skip to main content
New Participant
October 2, 2026
Question

Issue while uploading document to SharePoint

While executing the process at runtime, the document upload to the dynamically created SharePoint folder is failing. I am using the Client Credentials authentication method with Client ID, and the following error is encountered during the document upload operation.

[title=SharePoint returned a 404 HTTP error, message=SharePoint returned the following error code: -2147024893, System.IO.DirectoryNotFoundException, detail=File Not Found.]

    4 replies

    mathieud0001
    Genius
    October 3, 2026

    Seems that it can’t find the folder to upload to. Hard to say what’s wrong without more details.

    harshas2775
    Brainy
    October 5, 2026

    Verify the Sharepoint folder path you are trying to move the document to, it seems incorrect/invalid. 

    Happy to help. Even happier to optimize.
    arunkumara411233
    Participating Frequently
    October 11, 2026

    This error usually indicates that the target SharePoint folder path cannot be found. Please verify that the dynamically created folder exists before uploading the document and that the site URL, library path, and folder name are correct. Also, ensure the app has the required SharePoint permissions

    Inspiring
    October 12, 2026

    Since the SharePoint folder is created dynamically, I would suggest checking whether the upload step is using the correct folder reference returned by the folder creation operation. Also, verify that the folder creation completes successfully before the upload starts. If the upload runs immediately afterward, try retrieving the newly created folder details to confirm that it is accessible.

    If the issue persists, log the exact folder path passed to the upload operation and test it independently to identify whether the issue is related to folder creation or document upload.