Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Error when moving file

(0) ShareShare
ReportReport
Posted on by 6

When creating a flow to move a new file from one Sharepoint folder to another in the same site, receive error

 

"Failed to verify the existence of source object at 'https://XXXXXXXXXXXXXXXXXXXX.sharepoint.com/sites/PolicyDocuments/{"responder":{"id":"XXXXXXXXXXXX","displayName":"XXXXXX, XXXXXXX (XXXXXXX)","email":"XXXXXXX@XXXXXXXXXXX.com","tenantId":"XXXXXXXXXXXXXXXXXXXXXXXX","userPrincipalName":"XXXXXXXXXXXXXX@XXXXXXXXXXX.com"},"requestDate":"2023-07-26T20:32:35Z","responseDate":"2023-07-26T20:33:19Z","approverResponse":"Approve","comments":" (test)/n"}' due to error 'The specified file or folder name is too long. The URL path for all files and folders must be 400 characters or less (and no more than 400 characters for any single file or folder name in the URL). Please type a shorter file or folder name.'.
clientRequestId: 094501c4-c24b-4e17-a4f8-38b78aa9929c
serviceRequestId: 094501c4-c24b-4e17-a4f8-38b78aa9929c

 

The file name is only 20 characters long.  The above error has responder info in it also.  I'm using the "Move File" action and the "Current Item" object for the file.  Any suggestions?

  • Scott86 Profile Picture
    6 on at
    Re: Error when moving file

    Thanks @Sam .  That worked great.

  • Verified answer
    SamLed Profile Picture
    2,332 Moderator on at
    Re: Error when moving file

    Ok, you have to get properties of file associated to the item with "Get file properties" giving it the item ID then use the file identifier returned to move it :

     

    SamLed_0-1690462397800.png

     

    [Edit] if you use the "When a file is created (properties only)" trigger, you don't need the "get file properties" action. You can get the identifier directly from trigger.

     

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

     

  • Scott86 Profile Picture
    6 on at
    Re: Error when moving file

    Two follow up questions

    1  Since the file name itself is not too long, is there a way to call the relative path?

    2  I don't see any reference to the file except in the error itself.  Is "current item the wrong object to use?  All I see in the message above is approver info.

  • SamLed Profile Picture
    2,332 Moderator on at
    Re: Error when moving file

    Path calculation take into account the whole relative path to file not only the file name with extension.

     

    /sites/site-url/documenlibrary/folder1/../folderN/filename.fileextension

     

    calculation :

    • /sites or /teams
    • The site url
    • document library url
    • All slashes are included
    • file name with extension 
    • An encoded value such as a blankspace (%20) equals one character.

     

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492