Copilot agent don't retreving me the file names of sharepoint

David Tabernero 0 Reputation points
2026-11-13T16:29:47.42+00:00

Hi
I've configured a copilot agent that should read a directory of my sharepoint. In these sharepoint I've uploaded 3 txt files and it has another folder. When I prompt that copilot list me the directory it retrives me one file but the other 2 files doesn't tell them to me.
I've checked the knowledge and the sharepoint link and everyting it's correct.

Any help?

Thanks

Microsoft Copilot | Microsoft 365 Copilot | Development
0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-11-13T16:30:05.6533333+00:00

    If the SharePoint knowledge source is configured and shows as ready, the most common reasons some files are not returned are these:

    1. Verify the files are actually usable by the knowledge source
      • On the Knowledge page, confirm the missing files or folder are reported as Ready.
      • If a file appears in the source but still never answers, possible causes include:
        • unsupported characters in the SharePoint file name
        • sensitivity settings such as Confidential or Highly Confidential
        • password protection
        • unsupported file type
        • the file or folder not being shared with the account being used
    2. Check user permissions on the exact files
      • Copilot Studio respects Microsoft 365 security trimming.
      • The signed-in user must have at least read access to the specific SharePoint site and files.
      • Open each missing file directly in SharePoint with the same user account used to test the agent.
      • If possible, test the same query in Microsoft 365 Copilot Chat. If it also cannot retrieve the content, that points to a permission or search indexing barrier.
    3. Check whether the files are protected
      • Files protected by an encrypting sensitivity label, Double Key Encryption (DKE), or a password can appear as Ready but still return no response.
      • Open each missing file in SharePoint or the desktop app and check whether it shows encryption, DKE, or password protection.
      • If organization policy allows it, remove that protection or publish an unprotected copy in a SharePoint location the agent can access.
    4. Check the SharePoint source path
      • If the SharePoint site or folder was renamed after the knowledge source was added, the source link can break.
      • In that case, update the knowledge source with a newly generated SharePoint link.
    5. If manual authentication is being used, verify the app registration and agent scopes
      • The Microsoft Entra ID app registration must include Sites.Read.All and Files.Read.All.
      • The agent authentication settings must also include Sites.Read.All and Files.Read.All alongside profile and openid.
      • If consent for those scopes is missing, the agent can return no results without showing an error.
      • If Restricted SharePoint Search is enabled in the tenant, SharePoint knowledge sources are blocked until the relevant sites are allowed.
    6. Check whether the missing item is a subfolder scenario
      • Copilot Studio can index only up to the maximum number of files, folders, and subfolders for a SharePoint or OneDrive folder. Remaining items are not processed, and it does not indicate which ones were skipped.

    A practical test path for this case:

    1. Open the 2 missing .txt files directly in SharePoint with the same account.
    2. Confirm those files are not encrypted, password-protected, or labeled with encrypting sensitivity protection.
    3. On the Knowledge page, verify whether those files are actually usable and not just present in the source.
    4. If manual auth is configured, verify Sites.Read.All and Files.Read.All exist in both the app registration and the agent authentication settings, and that consent was granted.
    5. If the folder or site was renamed, replace the SharePoint source link.

    If the agent can answer from one file but not the other two, that usually points to file-level permissions, protection, unsupported file conditions, or authentication scope issues rather than the SharePoint link itself.


    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.