decompress a True Flat .zip file (no parent folder) in azure blob storage using azure logic app Standard

Abhishake Jaiswal 160 Reputation points
2025-10-31T05:37:54.08+00:00

we have a logic app WF that gets triggered when email arrives in a mailbox. It gets the attachment in email and uploads to Azure blob storage.
Now we need to unzip files that come with .zip extensions.
we are facing issue in trying to unzip truly flat zip files - that do not have a parent folder.

we tried using 3 connectors
Extract an archive from a blob path to a folder
Extract archive from content to a folder
Extract an archive from a blob path to a folder based on a URI

but all are failing in flat files case with below error.

{

"code": "ServiceProviderActionFailed",

"message": "The service provider action failed with error code 'BadRequest' and error message 'The specified blob does not exist.\nRequestId:bfexxxxx-a01e-zzzz-yyyy-ffffff00000\nTime:2025-10-31T05:25:40.7756972Z\r\nStatus: 404 (The specified blob does not exist.)\r\nErrorCode: BlobNotFound\r\n\r\nContent:\r\n<?xml version="1.0" encoding="utf-8"?><Error><Code>BlobNotFound</Code><Message>The specified blob does not exist.\nRequestId:bfexxxxx-a01e-zzzz-yyyy-ffffff00000nTime:2025-10-31T05:25:40.7756972Z</Message></Error>\r\n\r\nHeaders:\r\nServer: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0\r\nx-ms-request-id: bfexxxxx-a01e-zzzz-yyyy-ffffff00000\r\nx-ms-client-request-id: qwerty-d3c7-4d9e-be40-asdfghjklpoi\r\nx-ms-version: 2024-08-04\r\nx-ms-error-code: BlobNotFound\r\nDate: Fri, 31 Oct 2025 05:25:40 GMT\r\nContent-Length: 215\r\nContent-Type: application/xml\r\n'."

}

Is this a known limitation ?do we have a workaround for this ?
we do not have issues with .zip email attachments that have a inbuild folder structure.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
{count} votes

2 answers

Sort by: Most helpful
  1. Pravallika KV 3,565 Reputation points Microsoft External Staff Moderator
    2025-10-31T06:58:02.4433333+00:00

    Hi Abhishake Jaiswal,

    Thanks for the confirmation. Glad that your issue is resolved.

    The specified blob does not exist

    If the ZIP is flat (no folder structure), the extraction logic sometimes miscalculates the destination path and tries to write a blob to a non-existent folder path, or the connector expects a folder prefix that doesn’t exist. Hence the misleading “BlobNotFound” (404) error.

    Even if Windows can open the ZIP, Logic Apps built-in connectors are stricter. Usually, the issues are compression type, central directory quirks, encoding, or metadata entries. Repackaging or using a more robust extractor (Azure Function) fixes it reliably.

    Solution:

    Those zip files use non-standard compression or metadata formats that Azure’s extractor doesn’t support e.g., ZIP64, Deflate64, AES-encrypted zips, bad encoding, or missing folder paths.

    Re-compress the ZIP by using a standard tool (Deflate) like 7-Zip, WinRAR before sending to Logic App.

    Hope it helps!


    Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.

    User's image

    If you have any other questions, let me know in the "comments" and I would be happy to help you.

    0 comments No comments

  2. Abhishake Jaiswal 160 Reputation points
    2025-12-05T05:00:36.79+00:00

    this worked for uploading to blob storage by changing connector
    existing connectors :

    1. upload zip to blob storage
      Connector : Azure Blob Storage
      Operation note: Upload a blob to an Azure storage container.
      Connector type : In-app
    2. Extract zip file
      Connector : Azure Blob Storage
      Operation note : Extract an archive from a blob path to a folder.
      Connector type: In-app

    new connector used

    1. Create blob (v2)
    2. Extract Archive to folder (V2)

    Though we noted that the folder extraction works fine for blob storage,
    if we try unzip of same zip file on file share, the file share connector was not working.
    Connector : Azure File Storage
    Operation note : Extract an archive file inside the specified folder. Only ZIP archives are supported.
    Connector type : In-app

    error message received :
    "code": "ServiceProviderActionFailed",

    "message": "The service provider action failed with error code 'BadRequest' and error message 'Service request failed.\r\nStatus: 400 (The specifed resource name contains invalid characters.)\

    I individually checked each file name, and they are all valid.
    What surprises me that azure blob storage allows this action, but file share does not for same zip file.
    could you help to advise why we have this different behaviour?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.