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 / Power automate: Excel ...
Power Automate
Unanswered

Power automate: Excel Office script blocks moving Excel file to another folder

(1) ShareShare
ReportReport
Posted on by 10
Hello,
I want to use power automate to run an office script on an Excel file, use some information in the file to make an approval request. If the Excel file is approved, the last step is to move it to another SharePoint folder.
The problem comes from moving the excel file, it is locked by the script (error 400).
 
Do you have any ideas?
Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Rtg65000 

     

    could you share the error details ?

    Also are you trying to do everything within script itself ? 

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • Rtg65000 Profile Picture
    10 on at
    I saw a while technique as long as the file is not unlocked. After 5-6 min, the file is unlocked from the script and I can move it. It's not ideal but it works.
    Thank you for your answer.
     

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 389

#2
Vish WR Profile Picture

Vish WR 331

#3
David_MA Profile Picture

David_MA 298 Super User 2026 Season 1

Last 30 days Overall leaderboard