Building and customizing solutions using Microsoft 365 Copilot APIs and tools
Hello uehara,
Since the complete answer is visible in the Copilot Studio Activity map, the child agent and knowledge search appear to be completing successfully. The failure is likely occurring after orchestration, when the response is returned to or processed by the Microsoft 365 Copilot channel.
A few things worth testing:
- Start a new conversation whenever the failure begins. If this restores functionality for another one or two turns, check for a ConversationStateTooLarge condition or accumulated multi-agent context.
- Temporarily instruct the child agent to return a short plain-text response without Markdown tables, citations, or multiple sections. This will help rule out response payload size or channel-rendering issues.
- Test the same questions directly against Agent B in Microsoft 365 Copilot, if possible. This can isolate whether the failure is specific to the parent-to-child handoff.
- Republish both agents, then remove and reconnect Agent B to Agent A to refresh the connected-agent reference.
- Confirm that both agents use compatible authentication settings and that no additional connected-agent chaining is occurring.
- Enable Application Insights logging for incoming and outgoing activities and capture the conversation ID, timestamp, activity ID, and any error code generated during the failed turn.
Copilot Studio documents errors such as ConversationStateTooLarge, AsyncResponsePayloadTooLarge, connected-agent authentication errors, execution timeouts, and Dataverse search throttling. However, based on the described behavior, conversation-state growth or a Microsoft 365 channel handoff issue seems more likely than SharePoint retrieval failure.
Reference Document:
1.https://learn.microsoft.com/en-us/troubleshoot/power-platform/copilot-studio/authoring/error-codes?tabs=webApp
2.https://learn.microsoft.com/en-us/microsoft-copilot-studio/advanced-bot-framework-composer-capture-telemetry
3.https://learn.microsoft.com/en-us/microsoft-copilot-studio/telemetry-overview
4.https://learn.microsoft.com/en-us/microsoft-copilot-studio/admin-transcript-controls
5.https://learn.microsoft.com/en-us/microsoft-copilot-studio/analytics-transcripts-studio