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 / Flow action for Move O...
Power Automate
Answered

Flow action for Move Or Rename File "The resource could not be found."

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a flow that triggers when a new email comes to my inbox with a specific file attachment. It then moves and renames a file in a one drive location then places the specific email file attachment in the one drive location that the moved file was in. They both initially have the same name before the file is renamed and moved. The flow runs successfully the first time, but fails after than and will not run past the first instance. I'm looking for an alternative solution or a workaround to make this process work. 

FileNotFound.png

Categories:
  • Verified answer
    Sutherland Profile Picture
    Microsoft Employee on at

    Hello Kcronic,

    I would recommend using 'Move or rename a file using path'. As 'Move or rename a file' is tracked by the unique identifier of the file. That's why your flow runs successfully the first time, but fails after than because Flow cannot find previous file id any more.  
    https://docs.microsoft.com/en-us/connectors/onedriveforbusiness/#move-or-rename-a-file

    Johnnyg_0-1597563455958.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Doesn't look like that works either. When I tried I get a new error. New Error.png

     

     

  • espk Profile Picture
    2 on at

    Hi @Anonymous , have you found the solution to this issue?

     

    The first folder should be saved in the root folder of your connection

     

    The Destination File Path should be like this:

     

    Parts of my Destination File Path:

    /SNOW - BAU/  - First folder after the root folder Onedrive

    Archive Prod Release Candidates - Folder within SNOW - BAU

    [SENT]Filename - New filename of the file I want to move

     

    espk_0-1661996592156.png

    For example, my connection below is pointed to my OneDrive folder, where my "SNOW - BAU" Folder is saved.

     

    espk_1-1661996817172.png

     

    The folder structure looks like this in File Explorer:

    C:\Users\[myusername]\OneDrive\SNOW - BAU\Archive Prod Release Candidates

    espk_2-1661997056253.png

     

     

     

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard