Copilot Agent – Unable to Read SharePoint Knowledge Source Content

Murata, Arissa 0 Reputation points
2026-12-03T12:29:38.4766667+00:00

I'm experiencing an intermittent SharePoint Knowledge Source retrieval issue with my Copilot Studio agent.

The agent was working fine previously, but sometimes it fails to retrieve document content correctly. It can find the documents and provide their names and links, but cannot retrieve the actual content to answer questions.

This issue occurs intermittently across Copilot Studio's Test panel, Microsoft 365 Copilot, and Microsoft Teams. Sometimes the same question works correctly, but other times it fails without any changes to the configuration.

I haven't changed anything on sharepoint document.

What could be causing this intermittent issue, and how can I troubleshoot and fix it?

 

Microsoft Copilot | Microsoft 365 Copilot | Development

2 answers

Sort by: Newest
  1. Ashlesha Pawar (Tata Consultancy Services Limited) 730 Reputation points Microsoft External Staff
    2026-12-04T06:16:20.0333333+00:00

    Hi Arissa,

    Based on the behavior described, this appears to be an intermittent SharePoint content retrieval or grounding issue rather than a document discovery issue.

    Since the agent can identify documents and return their links but sometimes fails to retrieve their content, I recommend checking the following:

    1. SharePoint Indexing: Search for a unique phrase from the affected document directly in SharePoint and verify that it appears in search results.
    2. Permissions: Confirm that the affected user has Read access to the SharePoint site and documents.
    3. Document Protection: Check whether the files have encryption-based sensitivity labels, DKE, or password protection.
    4. Knowledge Source Configuration: Review SharePoint knowledge source filters and topic-level generative answers data source settings.
    5. Authentication: Verify that the SharePoint connection and authentication permissions are configured correctly.
    6. Service Health: Since the issue occurs intermittently across multiple channels, check Microsoft 365 Service Health for potential SharePoint Search or Copilot Studio incidents.

    A few questions to narrow down the issue:

    • Does this happen with all SharePoint documents or only specific ones?
    • When it fails, does the agent return the document name and link but fail to answer based on its content?
    • Does the same query work consistently when searching directly in SharePoint?
    • Are there any errors in Copilot Studio conversation activity details?

    If possible, please share one successful and one failed interaction with timestamps.

    This will help isolate whether the issue is related to SharePoint indexing, permissions, retrieval, or a potential service-side issue.

    Was this answer helpful?


  2. AI answer

    2026-12-03T12:30:05.1566667+00:00

    Common causes of this intermittent behavior are:

    1. SharePoint search/indexing gaps Copilot Studio uses Microsoft Search and only the top three SharePoint search results to generate a response. If indexing is incomplete or inconsistent, the agent might find the file name/link but fail to ground on the content. Troubleshooting:
      1. In SharePoint, search for a unique phrase from the target document and confirm the file appears in search results.
      2. If the document was uploaded or changed recently, wait for indexing to complete.
      3. If urgent, have a SharePoint site admin go to Site Information > View all site settings > Search and offline availability > Re-index site.
      4. Confirm the content is in a supported format and not on unsupported page types such as classic .aspx pages or modern pages with SPFx components.
    2. User permission trimming Copilot Studio respects Microsoft 365 security trimming. If the signed-in user intermittently appears unable to retrieve content across Copilot Studio, Microsoft 365 Copilot, and Teams, verify that the user has at least read access to the exact site and files. Troubleshooting:
      1. Open the exact SharePoint document directly with the affected user account.
      2. Test the same query with the same user in Microsoft 365 Copilot Chat. If it also fails there, that points to a permission or search indexing issue.
      3. Amend SharePoint permissions if needed.
    3. Protected files Files protected by encrypting sensitivity labels, Double Key Encryption (DKE), or passwords can appear as available in SharePoint, but the agent cannot extract their content. Troubleshooting:
      1. Open the file and check whether it uses password protection, DKE, or an encrypting sensitivity label.
      2. Compare behavior with an unprotected file in the same source.
      3. If policy allows, remove the protection or publish an unprotected copy in an accessible SharePoint location.
    4. Authentication or app registration misconfiguration Missing delegated scopes can cause silent no-result behavior. Required scopes include Sites.Read.All and Files.Read.All, and those scopes must also be present in the agent authentication settings together with profile and openid. Troubleshooting:
      1. Review the Microsoft Entra ID app registration permissions.
      2. In Copilot Studio, review the agent authentication settings and confirm the same scopes are configured.
      3. Confirm admin/user consent has been granted.
      4. If Restricted SharePoint Search is enabled in the tenant, SharePoint knowledge retrieval is blocked until the relevant sites are allowed.
    5. Filter conditions excluding content If the agent uses SharePoint filters, or a topic-level Create generative answers node with Search only selected sources, the expected content can be excluded at runtime. Troubleshooting:
      1. In Copilot Studio, go to Knowledge > select the SharePoint source > Edit > Advanced settings and review filters such as Title, Author, Modified by, and Modified on.
      2. If filters use variables, add a debug step to confirm the runtime value is what is expected.
      3. In the topic node, check Properties > Data source and confirm the correct SharePoint source is selected, or turn off Search only selected sources.
    6. Known SharePoint grounding limitations
      • SharePoint files with null characters in the file name can return no results.
      • SharePoint and OneDrive grounding for declarative agents requires an active Microsoft 365 Copilot license for the signed-in user.
      • SharePoint grounding requires User authentication; service principals are not supported for that scenario.

    A practical end-to-end troubleshooting path is:

    1. Reproduce the failure with one specific document and one specific query.
    2. In SharePoint, search for a unique phrase from that document.
    3. Open the document directly as the affected user and confirm read access.
    4. Check whether the file is encrypted, password-protected, or DKE-protected.
    5. In Copilot Studio, review source filters and topic-level source selection.
    6. Verify the app registration and agent auth scopes: Sites.Read.All, Files.Read.All, profile, openid.
    7. Confirm the signed-in user has a Microsoft 365 Copilot license and that the connection uses User authentication.
    8. If the site or folder was renamed, regenerate the SharePoint source link and update the knowledge source.
    9. If the content is newly uploaded or changed, reindex the site and retest after indexing completes.

    If the issue is truly intermittent with no content, permission, or configuration changes, the most likely areas to validate first are Microsoft Search indexing, permission trimming, and authentication configuration, because all three can produce silent “document found but content not grounded” behavior.


    AI-generated content may be incorrect. Read our transparency notes for more information.

    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.