Building and customizing solutions using Microsoft 365 Copilot APIs and tools
The issue you are experiencing with the Copilot Studio agent triggering the OnErrorLog event before any topic execution indicates that there may be a problem during the agent's initialization or orchestration pipeline setup. The error code SystemError suggests that something unexpected is occurring, which prevents the agent from performing intent recognition or routing to any configured topics.
Since this behavior is consistent and reproducible, it is likely that the failure is happening at a stage before the agent can validate topics or execute any custom logic. This could be due to a misconfiguration or an issue in the underlying setup that is not surfacing specific errors to the developer.
To address this, you may want to:
- Review the agent's initialization process to ensure all configurations are correct.
- Check for any recent changes in the orchestration pipeline that might affect the startup sequence.
- Utilize logging tools like Application Insights to gather more detailed information about the initialization phase, even if the current logs do not show specific errors.
Expected behavior is that the agent should initialize successfully, perform intent recognition, and route to the appropriate topic. The OnErrorLog should only be triggered for runtime exceptions that occur during topic execution or downstream actions, not during the initial setup phase.