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 / 'Extract archive to fo...
Power Automate
Unanswered

'Extract archive to folder' failed - BadRequest - Status Code 400

(3) ShareShare
ReportReport
Posted on by 4

Running out of ideas how to fix a pretty simple flow for extracting ZIP file in OneDrive for Business folder.

 

Tried various changes like different triggers, and overwrite off/on still exactly the same outcome.

 

UPDATE: I found that when copying ZIP file from FTP to OneDrive For Business, MS Flow changes the file slightly, which then breaks ZIP structure and doesn't allow extraction after this. 

 

Any recommendations, on how to copy ZIP files from FTP without affecting their structure?

 

 

Please help!

 image

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @gentsuki,

     

    Could you share more details on your flow? How is it created?

    What’s the detailed error message?

    I have made the following test to copy ZIP file from SharePoint library to OneDrive for Business, then Extract archive to folder.

    It is configured likes below. Please check it for a reference and try again on your side.

    1.PNG2.PNG

     

    Best regards,

    Mabel

  • vz Profile Picture
    4 on at

    hi @v-yamao-msft 

    I have a similar flow extracting a folder stored in the SharePoint library.

    Strange thing is that it was working before but it's not working anymore...

    Annotation 2019-10-16 142041.pngAnnotation 2019-10-16 140854.png

  • JenVitug Profile Picture
    264 on at

    @v-yamao-msft  , please help me, i have the same error for below flow , error occurs in Extract folder STEP 😞

    FLOW Unable to extract zip file to SP folder.JPG

     

    Error message :   

    Unable to extract contents of file '/Geo IT PH Documents/Message Report.zip'.
    clientRequestId: fba1f522-f37a-41b9-a4cc-e1be66c20abf
    serviceRequestId: d04a6d9f-e085-b000-12ef-23893697c3a9;d04a6d9f-d089-b000-12ef-258390175731;d04a6d9f-c08b-b000-12ef-2b440c2b19fc

     

     

    I have tried the same flow for a zip file that contains an excel file (xlsm)  and it did not encounter error.

     

    The Zip file that i get this error  is one that contains a  CSV file in it .  Could it be that CSV files that are ZIPPED cannot be extracted ?

     

     

  • Spinner Profile Picture
    107 on at

    @gentsuki- similar problem here, though in my case I'm uploading to a SharePoint library. Sometimes the unzipping works, but often it fails. However, pressing "Resubmit" on the flow in Power Automate often works without any problem.

     

    I saw a similar problem here: https://powerusers.microsoft.com/t5/Connecting-To-Data/Sharepoint-Extract-Folder-gives-400-BadRequest/td-p/208105

    In that problem, the zip file contained a CSV file, like @JenVitug reported. Did your zip file also contain something similar? Mine doesn't contain a CSV file, but does contain XML.

  • marioS Profile Picture
    36 on at

    I have the exact similar issue right now. My zip file contains CSV and XML 😉 did not really find a solution after few hours... any idea is warmly welcomed...

    marioS_0-1628078653778.png

     

    @JenVitug and @Spinner kindly ask you to share your solution if you could make it work ...

     

  • Spinner Profile Picture
    107 on at

    @marioS  It's not a solution, but a couple of days ago I introduced a 5-minute Delay action directly after the trigger. Since then all the runs have gone through successfully (so far).

  • marioS Profile Picture
    36 on at

    @Spinner i will at least give it a try… will let you know if it worked… 

  • El_Diego76 Profile Picture
    7 on at

    Did it work or did you find another solution?

  • marioS Profile Picture
    36 on at

    @El_Diego76 unfortunately it did not work with the delay. Still getting the same error... Other solutions are still appreciated

  • 27Merlins Profile Picture
    5 on at

    I am having this same issue, and I have also not been able to find a solution. Does anyone have any update on this?

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 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard