Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Custom connector, API, on-prem gateway and large files problem

(0) ShareShare
ReportReport
Posted on by 166

Hi, we have created a custom connector and some actions to send files from sharepoint to our internal case management system through API by onprem gateway.

 

Everything works fine with smaller files, but when the file size exceeds 3 mb, we get error:

RequestEntityTooLarge
{
"status": 413,
"message": "The request content-length is larger than '3182218' bytes. Current: '6696239' bytes.\r\nclientRequestId: b0609d76-e922-4321-b894-8c23b63a4aa7",
"error": {
"message": "The request content-length is larger than '3182218' bytes. Current: '6696239' bytes."
},
"source": "gatewayconnector..."
}

 

On-premises data gateways documentation states that there's 20 mb limit on write operations: https://docs.microsoft.com/en-us/data-integration/gateway/service-gateway-onprem#considerations .

I've read that Chunking might be a solution https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-handle-large-messages#chunked-message-handling-for-connectors , but I don't understand how to use this with our custom connector and actions.

  • zarski Profile Picture
    zarski 166 on at
    Re: Custom connector, API, on-prem gateway and large files problem

    I don't find any documentation about that 3 mb limit so I was wondering if my JSON is not correct and that is causing the error? So we are picking the file from a SharePoint document library and POST it through API using multipart/form-data:

    zarski_0-1663223323351.png

     

  • zarski Profile Picture
    zarski 166 on at
    Re: Custom connector, API, on-prem gateway and large files problem

    Thanks, the problem with that is that there's no "Content transfer" section and "Allow Chunking" option under action's settings when we are using custom actions 😞

  • Sundeep_Malik Profile Picture
    Sundeep_Malik 6,480 on at
    Re: Custom connector, API, on-prem gateway and large files problem

    Hey @zarski 

    I dont know much about this. But I found another post related to your problem. 

     

    File size limit - Power Platform Community (microsoft.com)

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics