BadRequest. Http request failed as there is an error: 'Cannot write more bytes to the buffer than the configured maximum buffer size: 104857600.'

Shanmukha Yarabham (EXT-Nokia) 20 Reputation points
2024-05-31T10:57:38.2233333+00:00

I have a Logic App to extract Azure Cost Analysis data. I have successfully generated Blob link and while reading blob data using HTTP action, I am getting and error : BadRequest. Http request failed as there is an error: 'Cannot write more bytes to the buffer than the configured maximum buffer size: 104857600.'

I have tried enabling chunks of data and also tried by disabling in the properties.

As per the MS Docs, there is a file size limit, I would like to know how can I overcome the size limitation without splitting data into multiple files.

My file is around 150MB.

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,589 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,965 questions
{count} votes

Accepted answer
  1. Anand Prakash Yadav 7,780 Reputation points Microsoft Vendor
    2024-06-06T12:31:08.86+00:00

    Hello Shanmukha Yarabham (EXT-Nokia), I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept" the answer. Accepted answers show up at the top, resulting in improved discoverability for others.

    Issue: Customer encountered a "BadRequest" error in Logic App while trying to read Azure Cost Analysis data from a Blob link using an HTTP action. The error indicates the file size exceeds the maximum buffer size limit of 100 MB. Customer’s file is around 150 MB, and despite attempting to enable and disable data chunks, the issue persists.

    Cause: File size of 150 MB exceeds the maximum buffer size limit of 100 MB for HTTP actions in Azure Logic Apps. This limitation prevents the Logic App from reading the entire blob data in a single HTTP request.

    Solution: Using Azure Data Factory (ADF) is an effective solution for handling large files without size limitations. First, create an ADF instance in the Azure portal if you don’t already have one. In the ADF UI, create a pipeline and add activities for your desired operations, such as reading and processing blob data. Define source and sink datasets, pointing to your blob storage and the destination for processed data, respectively. Use the Copy Data activity to move data from source to sink, configuring necessary transformations or mappings.

    You can trigger this pipeline manually, on a schedule, or via an external trigger like an HTTP call from a Logic App. To integrate ADF with Logic Apps, add an ADF pipeline trigger in your Logic App using the Azure Data Factory connector. Select the Data Factory instance and the pipeline to trigger, providing any necessary parameters.

    ADF offers scalability, no strict size limitations, rich transformation capabilities, and seamless integration with other Azure services, making it a versatile data engineering platform.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful