Troubleshooting attachment upload failures and large DOR files with AEM Forms SharePoint connector
This article explains how to address upload failures, timeouts, and large Document of Record (DOR) file sizes when submitting forms with multiple large attachments using the AEM Forms SharePoint connector.
Description description
Environment
- Adobe Experience Manager (AEM) Forms as a Cloud Service (all versions)
- AEM Forms SharePoint connector
Symptoms
- Uploading more than 10 attachments of 20 MB each result in upload failures or timeouts.
- Error messages such as Internal submission error are displayed with limited detail.
- Submissions with multiple large attachments take over a minute, even if backend processing is fast.
- Attachments are included in the DOR PDF, resulting in very large DOR files.
Cause
Upload failures and timeouts are typically caused by infrastructure limits, such as network or CDN timeouts and SharePoint API constraints, when handling large numbers of large attachments. Including attachments in the DOR and form data can further increase processing time and file size.
Resolution resolution
Follow the steps below to resolve the issue:
-
Review the practical limits for file attachments:
-
There’s no documented hard limit on the number or size of attachments, but infrastructure limits (such as network, CDN, or SharePoint API timeouts) may restrict the number of large files that can be uploaded in a single submission.
-
If you experience failures with more than 10 files of 20 MB each, consider reducing the number or size of attachments per submission.
-
-
Configure the File Attachment component as Unbound:
-
In your Adaptive Form, set the File Attachment component’s Bind Reference property to Mark as Unbound Form Element.
-
This prevents attachment data from being included in the form’s data payload and the generated DOR, reducing DOR size and improving performance.
-
-
Improve error handling:
- If users see generic errors like Internal submission error, review your custom submit handlers and backend services to ensure they return meaningful error messages to the UI.
-
Monitor and adjust timeouts:
-
If uploads are failing due to timeouts, review and adjust your CDN, server, or SharePoint API timeout settings, where possible.
-
If infrastructure limits can’t be increased, reduce individual file sizes or the number of simultaneous uploads.
-
-
Verify resolution:
- After making these changes, test form submissions with multiple attachments to confirm that uploads succeed and the DOR file size is as expected.