Consistent sharepoint and onedrive file creation and edit issues

I’ve been working to set up an automated Daily Work Session Recap system that would create and update documents in either OneDrive or SharePoint through Quick Suite’s Microsoft Graph integrations. Have made good progress on the authentication and navigation side, but keep hitting the same wall when it comes to actually uploading files.

The authentication works perfectly - the AI agent can connect to my OneDrive, create folders, browse SharePoint sites, and access document libraries without any issues. We successfully created a “Jane AI Assistant” folder in my OneDrive and even found my newly created SharePoint site “Jmemtestenv1” after it got indexed.

But every single time we try to upload a document - whether it’s a Word doc, text file, or any other format - we get this content type validation error:

{
  "errorMessage": "1 validation error detected: Value at 'action.actionReviewResponse.payload.httpInvokeActionInput.contentType' failed to satisfy constraint: Member must satisfy enum value set: [application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, text/csv, application/json, text/plain, text/html, application/msword, multipart/form-data, image/gif, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/pdf, image/png, text/xml, application/xml, image/svg+xml, image/jpeg, application/octet-stream, multipart-form-data/mixed, application/x-www-form-urlencoded]",
  "errorCode": 400,
  "userMessageId": "0fb8a437-0aac-47d9-b480-65d2df0baa57",
  "timestamp": "2025-10-27T17:06:36.920Z",
  "region": "us-east-1"
}

The error message shows all the allowed content types, and I’ve tried using the proper MIME type for Word documents (application/vnd.openxmlformats-officedocument.wordprocessingml.document), but it still fails validation. This happens consistently across both OneDrive and SharePoint, across different sessions, and with different sites. How can I fix this? This prevents me from having the agent automatically create/update documents.

Hi @praandre,

If you’re consistently running into the same error even though authentication worked well, this may be a larger bug so I would suggest creating a support ticket so that you can get more direct assistance from the AWS support team: