The file size exceeds the limit and will be skipped Error with copilot agent

Albert Cooper 0 Reputation points
2026-08-25T07:50:36.82+00:00

I have an agent that should be reviewing documents for users and giving feedback on what needs to be adjusted before final submission but all of a sudden copilot has started giving me the following error.

The file size exceeds the limit and will be skipped. The maximum file size for images is 16 MB and for text files is 16 MB. Error code: FileValidationError.

Even when i save the file to sharepoint and copy the link and paste it in the agent it gives me the same error.

I checked the settings and the setting that limits the attachment to 16 mb is disabled as well as the Code interpreter.

I checked the documentation and it says that copilots file size limit is 512mb so I'm not sure why this error is coming up. I can run an automation that once a file is uploaded to a SharePoint site it will call the agent and run the review but this limits the users interaction with the agent and getting or detailed feedback.

can someone help me identify why this is occurring and how to resolve this issue.

Microsoft Copilot | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Maycon Batista 336 Reputation points
    2026-08-28T13:32:15.97+00:00

    After some additional investigation, I found documentation that may explain the behavior.

    The agent is configured with File** processing **capabilities enabled. The official documentation for file uploads and image/file analysis states that uploaded files used during conversations are subject to file processing limits. The configuration page explicitly states:

    "Uploads are limited to 15 MB."

    Documentation: Analyze images and files in Microsoft Copilot Studio

    In my environment, the agent returns the following error:

    "The maximum file size for images is 16 MB and for text files is 16 MB. Error code: FileValidationError."

    The 15 MB limit shown in the agent configuration is very close to the 16 MB validation error returned by the runtime, which suggests the failure is likely occurring within the file-processing capability used by the chat experience rather than in the underlying knowledge source or storage layer. [learn.microsoft.com]

    It's also worth noting that other Copilot Studio documentation references larger limits (for example, 512 MB for certain file upload/knowledge scenarios), which may refer to a different upload path than conversational file processing.

    Based on these findings, the observed behavior appears consistent with the file processing feature limit rather than a SharePoint, OneDrive, or Teams file storage limit.

    Could Microsoft confirm whether the 15 MB file-processing limit documented in Copilot Studio is the expected limit for files uploaded to agents through Microsoft Teams and Microsoft 365 Copilot Chat?

    Was this answer helpful?

    0 comments No comments

  2. Sayali-MSFT 6,476 Reputation points Microsoft External Staff Moderator
    2026-08-26T10:29:45.5633333+00:00

    Hello Albert Cooper,
    Based on the error, it sounds like the file is being processed through the chat attachment pipeline rather than being accessed as a knowledge source. The FileValidationError and the reported 16 MB limit suggest the file is failing validation before the agent can review it, even though other Copilot scenarios may support larger file sizes. Could you confirm the file type (PDF, DOCX, PPTX, etc.), its actual size, and whether the issue occurs with all files or only specific ones?

    It would also be helpful to know whether the file is being uploaded directly in chat, accessed through a SharePoint link, or retrieved from a SharePoint library configured as a knowledge source. If the same error occurs when using a SharePoint link, the service may still be attempting to ingest the document through the attachment-processing path rather than retrieving it from SharePoint. If this previously worked and no configuration changes were made, it could indicate a recent platform regression. Capturing a correlation ID, conversation ID, sample file details, and whether the issue reproduces in both the test and published experiences would help determine for further investigation.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.