I am creating MS Flow to move files between libraries. Source & destination libraries contains same folder structures & Subfolders. When file is created in source sub-folders, it should move to respective subfolders dynamically to Destination Library based on where they created on source.

In Move File Scope, i chose Destination Folder: FolderPath/FileNamewithExtension

but I got error.

Please advise me on this.

  • which error you've got? Any screenshots? Why are you moving these files? Aug 1, 2019 at 12:55
  • { "status": 400, "message": "Failed to verify the existence of destination location at 'site.sharepoint.com/TestNew/Test' due to error 'The system cannot find the file specified. (Exception from HRESULT: 0x80070002)'.\r\nclientRequestId: dd176c96-296b-4d12-bdb7-d37429d5cd2f\r\nserviceRequestId: dd176c96-296b-4d12-bdb7-d37429d5cd2f" } Aug 1, 2019 at 13:46
  • and whats the source and destination? It looks like you are setting bad values Aug 1, 2019 at 13:59
  • Actually If I select Manually the folder names are working fine but dynamic its not working.. I am almost finding the other ways to do.. Aug 2, 2019 at 10:24

2 Answers 2


In Move file action, you should choose the destination folder like this: /Destination Library/FolderName.

Here is my sample flow to move files, hope it will help you: enter image description here

  • Manual it is working fine.. Aug 2, 2019 at 10:24
  • but dynamically we need to fetch subfolders so I have used the formula split and concat and assign it to destination folder. now its working fine... Aug 2, 2019 at 13:45

To-fetch sub-folders name at Run-time we need use the following formula


In Move File Scope Destination Folder section we need to use split function with FolderPath using character ('/') and concat with Destination Library name

Concat('Destination Folder Name','/', split(triggerBody()?['{Path}'],'/')[1]) )

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.