web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error when moving file
Power Automate
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?

Categories:
I have the same question (0)
  • SamLed Profile Picture
    2,340 Moderator on at

    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.

  • Scott86 Profile Picture
    6 on at

    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.

  • Verified answer
    SamLed Profile Picture
    2,340 Moderator on at

    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

    Thanks @Sam .  That worked great.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard