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 / Unable to move a file ...
Power Automate
Answered

Unable to move a file into a folder in power automate

(0) ShareShare
ReportReport
Posted on by

I made a flow that will read out a pdf file and extract information from it and then create a new file with that data on a sharepoint document library.

I added a step that will check from what year the document is, create a folder for that year if it doesn't exist and then move the document into that folder, however it keeps refusing to move the file into the folder after it created it.

 

The API 'sharepointonline' returned an invalid response for workflow operation 'Move_file' of type 'OpenApiConnection'. Error details: 'The API operation 'MoveFileAsync' requires the property 'body' to be of type 'Object' but is of type 'String'.'

Lumina_0-1715861823885.png

 

Does anyone know how I can solve this? I've tried as much as I could think of...

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Lumina 

    I don't believe that the create folder action will throw an error if the folder already exists.  So, you can likely remove that check if you want.

    Can you post a screen shot of your Flow in design view?

     

  • CU02080621-5 Profile Picture
    on at

    Lumina_0-1715862439566.png

    Lumina_1-1715862524431.pngLumina_2-1715862571161.png

    Lumina_3-1715862604229.png

     

     

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Lumina 

    I believe that the Move File action wants the file identifier rather than the ID.  Believe it or not they are not the same.

    Try feeding Move file the Identifier and let me know how it goes.

    image.png

     

  • Verified answer
    CU02080621-5 Profile Picture
    on at

    I tried that but it still wouldn't work.

    I had to use the full path variable in the "file to move" box and in the destination folder I had to add the name of the document library for it to work.

    Weird but it works now 🙂 

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 840

#2
Valantis Profile Picture

Valantis 661

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard