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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error when moving file
Power Automate
Unanswered

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,338 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,338 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard