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.
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:
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 😞