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 / Custom connector, API,...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 168

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.

Categories:
I have the same question (0)
  • Sundeep_Malik Profile Picture
    6,501 on at

    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)

  • zarski Profile Picture
    168 on at

    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 😞

  • zarski Profile Picture
    168 on at

    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

     

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 484

#2
11manish Profile Picture

11manish 282

#3
David_MA Profile Picture

David_MA 280 Super User 2026 Season 1

Last 30 days Overall leaderboard