AEM Forms SharePoint submission fails when folder names contain spaces
Adobe Experience Manager (AEM) Forms submissions to a SharePoint Document Library may fail when the target folder name contains spaces or special characters because of a limitation in how the path is constructed for Microsoft Graph API calls. To resolve the issue, rename the target folder without spaces or special characters, update the SharePoint Document Library configuration in AEM Forms, and retest the submission.
Description description
Environment
Adobe Experience Manager (AEM) Forms integrated with SharePoint Document Library
Issue/Symptoms
- Form submission to SharePoint fails with a 502 Internal Server Error.
- Error details reference Illegal character in path and a folder path containing spaces or special characters.
- Form submission completes successfully when the folder name doesn’t contain spaces or special characters.
Root cause
AEM Forms integration with SharePoint doesn’t support folder names containing spaces or special characters because of a limitation in how the path is constructed for Microsoft Graph API calls. This causes an error when submitting forms to these folders.
Resolution resolution
Follow the steps below to resolve the issue:
- In SharePoint, locate the target Document Library folder for AEM Forms submissions.
- Rename the folder so that it doesn’t contain spaces or special characters. For example, use DevTest instead of Dev test.
- Save the changes in SharePoint.
- In AEM Forms, update the SharePoint Document Library configuration to reference the new folder name without spaces or special characters.
- Retest the form submission and verify that it completes successfully.