I got this error when trying to add attachments to AGO: The ArcGIS REST API returned an error: HTTP Error Code: 413 : '' Message Code . Further details: 'The page was not displayed because the request entity is too large.'
Esri community has a solution to edit the header, but there’s no option to edit header on transformer?
Best answer by desiree_at_safe
As an update, the issue for the ArcGISAttachmentConnector: Support Upload/Update with large files has been delivered! (FMEENGINE-88567)
Please update your Esri ArcGIS Connector - safe.esri-agol to version v3.25.1 - Minimum Build FME 24187 or higher
I haven't run into this issue with the ArcGISAttachmentConnector before, but the 413 error and workaround you mentioned (editing headers) is interesting and could point to a potential improvement or fix we need to make, as @j.botterill mentioned.
To help us dig into this further, would you be willing to share:
A log file with log debug on (which gives us information about your FME version and translation process)
A sample workspace, screenshots, or simply file that causes this issue
This should give us a clearer picture of the best approach going forward 🙂Alternatively, you can also submit a support case with us if you rather not share your process here:
Note that there is a 2GB limit through a multi-part upload using the REST API which is what the AddAttachmentConnector uses. Do you know the file sizes of your attachments?
I was able to reproduce your issue with a 29.3 MB PDF. It seems large images can trigger a similar error, though it’s not exactly the same one.
Regarding the workaround, while I haven’t tested the “edit header” method you mentioned (which I believe was discussed in an Esri Community thread), you could theoretically construct the REST API call in the HTTPCaller and edit or specify that header there:
Could you share the exact thread you’re referring to so I can confirm?
It also looks like there are a few other potential workarounds mentioned in this Esri Documentation on how to Attach files larger than 10 MB , such as compressing the file or uploading it to ArcGIS Online and attaching a link instead.
Either way, it does look like this is a great candidate for product improvement IDEA. I’d encourage you to Submit an Idea Here. Other FME Community users can upvote it, and our product team reviews these for future inclusion in FME. 🙂
I have struck the same error. In my case I cannot upload any pdf files larger than 10mb, so I wonder if the multi-part uploading is not working correctly.