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 / Moving (NOT copying) f...
Power Automate
Answered

Moving (NOT copying) files from personal OneDrive to OneDrive for Business

(0) ShareShare
ReportReport
Posted on by 9

I have both a personal OneDrive account as well as a OneDrive for Business (OfB) account.  When files are created in a certain folder in my personal OneDrive account, I want to move (NOT copy) them to my OfB account.  More specifically, if the file ends with a certain extension, I wanted to move it to one folder in my OfB account.  Files with any other extensions, I want to move to a separate folder in my OfB account.  I've been trying to do this with a Microsoft Flow, but I can't get it to work.  I've created the following customer flow, but am getting the following error.  Can this be done with a flow?  If so, how?

 

Flow Details:

 

|                                                                                            |

Yes                                                                                      No

|                                                                                            |

--Move or rename a file (Preview)                                       --Move or rename a file (Preview)

  --File: File name                                                                  --File: File name

  --Destination File Path: /Videos/File name                         --Destination File Path: /Pictures/Camera Roll/File name

  --Overwrite: No                                                                   --Overwrite: No

 

Error/Result:

--User the Condition section, it says:

 

   ActionFailed. An action failed. No dependent actions succeeded.

 

--Under the No (Move or rename a file) section.

 

BadRequest
--Inputs
  --File
      test.jpg
  --Destination File Path
      /Pictures/Camera Roll/test.jpg
  --Overwrite
      False
--Outputs
  --Status code
      400
  --Headers
--Body
{
  "status": 400,
  "message": "The provided drive id appears to be malformed, or does not represent a valid drive.",
  "source": "api.connectorp.svc.ms"
}

Categories:
I have the same question (0)
  • faustocapellanj Profile Picture
    1,662 on at

    Hi @MIR1315,

     

    Can you please post a screenshot of your Flow configuration?

     

    Thanks,

    Fausto Capellan, Jr

  • MIR1315 Profile Picture
    9 on at

    MyFlow.jpg

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @MIR1315,

     

    Do you want to move a file from OneDrive folder to OneDrive for Business folder using “Move or rename a file” action of OneDrive for Business connector?

     

    I suppose that you use “Move or rename a file” action of OneDrive for Business connector to move file from OneDrive folder to OneDrive for Business folder, is it true? The issue is confirmed on my side.

     

    The “Move or rename a file” action of OneDrive for Business connector only support moving files between folders of OneDrive for Business, it could not move files from OneDrive folder to OneDrive for Business folder (Cross server to move files).

     

    In addition, if you want to move files from OneDrive folder to OneDrive for Business folder, please take a try with the following workaround:

    • Add a “When a file is created” trigger of OneDrive connector.
    • Add a Condition, left input box set to File name dynamic content of the trigger, right input box set to .mp4, within middle drop down, choose ends with.
    • Within “If/yes” branch of Condition, add a “Create file” action of OneDrive for Business connector, specify Folder Path, File Name field set to File name dynamic content of the trigger, File content field set to File content dynamic content of the trigger. Under "Create file" action, add a "Delete file" action of OneDrive connector, File field set to File Identifier dynamic content of the trigger.
    • Within “If/no” branch of Condition, add a “Create file 2” action of OneDrive for Business connector, specify Folder Path, File Name field set to File name dynamic content of the trigger, File content field set to File content dynamic content of the trigger. Under "Create file 2" action, add a "Delete file 2" action of OneDrive connector, File field set to File Identifier dynamic content of the trigger.

    Image reference:4.JPG

    The flow works successfully as below:6.JPG

     

    Best regards,

    Kris

  • MIR1315 Profile Picture
    9 on at

    Thanks.  I'll give it a shot and let you know.

  • MIR1315 Profile Picture
    9 on at

    That worked great.  Thanks. Smiley Very Happy

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard