Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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

  • finn881988 Profile Picture
    4 on at
    Re: 'Extract archive to folder' failed - BadRequest - Status Code 400

    Delay Works for me.

    I have exactly same error code when I tried to extract archive to folder. The server need time to fully load the zip file. If the time is short then extract from non-fully loaded zip file, you will get an error. 

  • finn881988 Profile Picture
    4 on at
    Re: 'Extract archive to folder' failed - BadRequest - Status Code 400

    Try longer delay. Delay works for me.

  • xMetAK Profile Picture
    8 on at
    Re: 'Extract archive to folder' failed - BadRequest - Status Code 400

    Same problem:
    receiving .zip from mail
    Creating in one drive 
    Extracting in one drive (error)

    The file is ok, one drive can open the zip. But extract action fails.

  • Trys Profile Picture
    18 on at
    Re: 'Extract archive to folder' failed - BadRequest - Status Code 400

    I am also having the same problem with .csv files.

  • greeneye7 Profile Picture
    8 on at
    Re: 'Extract archive to folder' failed - BadRequest - Status Code 400

    @27Merlins, I had a similar problem and tried to follow the steps from another post, just replacing One drive actions with Sharepoint actions and for me it worked.


    https://powerusers.microsoft.com/t5/Building-Flows/Microsoft-Flow-Extract-zipped-email-attachment-on-incoming-email/td-p/497527

  • 27Merlins Profile Picture
    5 on at
    Re: 'Extract archive to folder' failed - BadRequest - Status Code 400

    I have managed to narrow down the issue, but I have not found a full solution to my overall issue.
    My automation was designed to take file attachments from emails (in this case a .zip file) and then extract it to a specified folder.

    I decided to test the 'Extract archive to folder' step separately using a simple "test.zip" file that I had placed in the source folder and it worked as expected. I then noticed (which I wish I had checked earlier), that the copy of the .zip file which was being created by the flow (from the email attachment) was becoming corrupt for some reason.

    When I attempt to open it manually, I am getting the following error;

     

    "Windows cannot open the folder.  The Compressed (zipped) Folder 'C:\xxx xxxx xxx\xxxxx\xxxx\xxxx\test.zip' is invalid."

     

    A similar issue identified by the following, but it did not end up getting a resolution.

     

    Solved: Cannot Write Zip File to Local Drive from E-Mail A... - Power Platform Community (microsoft.com)

     

     

     

     

     

     

  • Vladdsm Profile Picture
    2 on at
    Re: 'Extract archive to folder' failed - BadRequest - Status Code 400

    one possible idea is to try to re-create the same flow from the beginning. I would assume that those art problems happen when microsoft would create new [versions] actions and silently stop supporting the old ones

  • 27Merlins Profile Picture
    5 on at
    Re: 'Extract archive to folder' failed - BadRequest - Status Code 400

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

  • marioS Profile Picture
    36 on at
    Re: 'Extract archive to folder' failed - BadRequest - Status Code 400

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

  • El_Diego76 Profile Picture
    7 on at
    Re: 'Extract archive to folder' failed - BadRequest - Status Code 400

    Did it work or did you find another solution?

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >