The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
For an Agent Builder agent that intermittently fails to ground on SharePoint knowledge, the supported causes in this scenario are:
- Missing or incomplete SharePoint search indexing
- SharePoint grounding depends on Microsoft Search indexing.
- In SharePoint search, test a unique keyword from a target document. If the file does not appear, indexing is incomplete.
- Recently uploaded content can also fail until indexing finishes.
- If urgent, a SharePoint site admin can trigger reindex from Site Information > View all site settings > Search and offline availability > Re-index site.
- User permission trimming
- The agent only returns content the signed-in user can read.
- Verify the affected user can open the exact SharePoint file directly.
- Test the same query with the same user in Microsoft 365 Copilot Chat. If that also fails, the issue is likely permissions or indexing.
- For Agent Builder specifically, auto-sharing has a limitation: SharePoint files and folders are only auto-shared when sharing with specific security groups, not everyone in the organization. Manual permission updates might be required for the agent to return information from those sources.
- Protected or encrypted files
- Files protected by an encrypting sensitivity label, Double Key Encryption, or a password can show as Ready but still return no response.
- Verify whether the files prompt for a password, indicate DKE, or use an encrypting sensitivity label.
- If allowed by policy, remove the protection or publish an unprotected copy in a SharePoint location the agent can access.
- SharePoint source or configuration limitations
- Only the top three SharePoint search results are used to summarize and generate a response.
- Only modern SharePoint pages are supported; modern pages with SPFx components are not supported.
- Content from classic
.aspxpages is not used to generate answers. - If a SharePoint file name contains null characters, the agent returns no results from that knowledge source.
- Agent Builder licensing and authentication requirements
- Declarative agents grounded in SharePoint can fail at runtime with “Sorry, I wasn’t able to respond.” when the signed-in user does not have a Microsoft 365 Copilot license.
- SharePoint and OneDrive knowledge sources require an active Copilot license.
- For SharePoint grounding, the connection must use User authentication. Service principals aren’t supported.
- The user must have at least Read permission on the target SharePoint site.
- Restricted SharePoint Search
- If Restricted SharePoint Search is enabled for the tenant, SharePoint as a knowledge source is blocked and no results are returned.
- Confirm with the SharePoint administrator that it is not enabled, or that the relevant sites are on the allowed list.
- Large-content reliability expectations
- The available guidance does not state that large 300–500 page manuals are guaranteed to return consistent results after indexing.
- What is documented is that retrieval depends on SharePoint search results, supported formats, supported page types, permissions, and licensing.
A practical verification path for this case:
- Pick one document that fails intermittently.
- In SharePoint search, search for a unique phrase from that document.
- If it does not appear, wait for indexing or request a site reindex.
- Open that exact file using the same signed-in account that uses the agent.
- If access fails, fix SharePoint permissions.
- Check whether the file is encrypted, password-protected, or protected by DKE/sensitivity-label encryption.
- If yes, use an unprotected copy if policy allows.
- Confirm the signed-in user has an active Microsoft 365 Copilot license.
- Confirm the agent uses User authentication, not a service principal.
- If the source is SharePoint pages, confirm they are modern pages and do not use SPFx components.
- Check whether Restricted SharePoint Search is enabled in the tenant.
- If the issue is limited to Agent Builder sharing behavior, manually update SharePoint file/folder permissions used by the agent.
If identical prompts sometimes succeed and sometimes fail with no content changes, the documented causes that best match are indexing state, permission trimming, licensing/authentication requirements, Restricted SharePoint Search, or unsupported/protected content.
- SharePoint knowledge sources don't return results in Copilot Studio
- SharePoint knowledge sources don't return results in Copilot Studio
- SharePoint knowledge sources don't return results in Copilot Studio
- SharePoint knowledge sources don't return results in Copilot Studio
- Agent Builder in Microsoft 365 Copilot
- Known issues