Share via


Understand error codes

When an agent encounters a problem during a conversation, it responds with a message that includes an error code for the specific problem that was encountered. Users of the agent should give this error code to their administrator.

As an agent maker, if a problem occurs when you're using the test pane to test your agent, you can see a message with more context about the problem, in addition to the error code. Alternatively, you can use the Topic checker panel to validate your agent.

Error list

Note

The term dialog used in some error messages refers to a topic.

Error code Description
AsyncResponsePayloadTooLarge There's an error related to the output of a connector.
ContentError There's an error in the topic content.
DataLossPreventionViolation There was a data loss prevention violation.
EnforcementMessageC2 Not enough prepaid capacity was available.
FlowActionException An error occurred while executing a cloud flow.
FlowActionBadRequest A request made to a cloud flow was malformed.
FlowActionTimedOut A cloud flow took more than 100 seconds to run and timed out.
GenAISearchandSummarizeRateLimitReached The usage limit for generative AI was reached.
GenAIToolPlannerRateLimitReached The usage limit for generative orchestration was reached.
InvalidContent Invalid content was added to the code editor.
InfiniteLoopInBotContent A node was executed too many times.
LatestPublishedVersionNotFound Unable to retrieve the published version of the agent.
OutgoingMessageSizeTooBig A message sent by an agent is too large to process.
TooMuchDataToHandle The request made by the user is too large to process.
OpenAIRateLimitReached The capacity limit of the agent was reached.
RedirectToDisabledDialog A topic is redirecting to a disabled topic.
RedirectToNonExistentDialog A topic is redirecting to another topic that no longer exists.
SystemError A system error occurred in Copilot Studio.

AsyncResponsePayloadTooLarge

Error message: The output returned from the connector was too large to be handled by the agent. Try reducing its size by utilizing available connector filters or by limiting the number of configured action outputs.

Resolution: One of the agent's real-time connectors is returning a payload that's larger than the agent can handle. For more information regarding the payload limit, see Copilot Studio web app limits.

ContentError

Error message: This error produces dynamic messages based on the context of the error.

Resolution: This message is a catch-all error for problems related to your agent's content. The error message provides more details.

Common problems include:

EnforcementMessageC2

Chat message: This agent is currently unavailable. It has reached its usage limit. Please try again later.

This message is created under these documented conditions: Overage Enforcement.

Resolution:

  • Add more prepaid capacity or create a pay-as-you-go billing plan. Within 5 minutes the agent chat will work again.

DataLossPreventionViolation

Error message: This environment requires users to sign in before they can use the agent. Go to Manage > Security > Authentication and select the option that requires users to sign in.

Resolution:

EnforcementMessageC2

Error message: This agent is currently unavailable. It has reached its usage limit. Please try again later.

Resolution: This message is returned when an agent has reached its message capacity or the pay-as-you-go meter has reached its limit. For more information, go to Billing rates and management.

FlowActionException

Error messages:

  • No output was received from flow {FlowName} ({FlowId}), even though output was expected as per the agent definition.
  • The output parameter with name {ItemKey} on flow {FlowName} ({FlowId}) is missing from the response data. Refresh the flow, or ensure the flow returns this value.
  • The output parameter with name {ItemKey} on flow {FlowName} ({FlowId}) is missing from the output schema. Please refresh the flow.

Resolution: Check the flow for errors.

FlowActionBadRequest

Error messages:

  • The parameter with name {KeyName} on flow {FlowName} ({FlowId}) is declared to be of type {ItemTypeKind}. This type isn't supported when invoking Power Automate. Currently, only Text, Boolean and Numbers are supported.
  • The parameter with name {ItemKey} on flow {FlowName} ({FlowId}) is missing in the 'Call Flow' action.
  • The parameter with name {KeyName} on flow {FlowName} ({FlowId}) evaluated to type {ResolveType}, expected type {ExpectedType}.
  • The flow {FlowName} ({FlowId}) failed to run with response code {ResponseCode}, error code: {FlowErrorCode}.

Resolution: Check that the base type of any variables you pass to the flow match the parameter's type.

FlowActionTimedOut

Error message: The flow with id {FlowId} has timed out. Error Code: {FlowErrorCode}

Resolution: Check the flow for errors to understand why the cloud flow took more than 100 seconds to run before it returned to your agent. Try to optimize the query and the data you return from backend system. If some of the cloud flow logic can continue to run after a result is sent to the agent, place these actions after the 'Return value(s) to Copilot Studio' step in your cloud flow.

GenAISearchandSummarizeRateLimitReached

Error message: The usage limit for search and summarize has been reached. Please try again later.

Resolution: This message is returned when the agent reaches its generative AI limit to search and summarize sources.

GenAIToolPlannerRateLimitReached

Error message: The usage limit for generative orchestration has been reached. Please try again later.

Resolution: This message is returned when the agent reaches its generative orchestration limit.

InvalidContent

Error message: A total of {TotalComponents} component(s) exist in the agent, but none are valid.

Resolution: Open the code editor to review issues with the content.

InfiniteLoopInBotContent

Error message: Action {DialogId}.{TriggerId}.{ActionId} was executed more than {MaxTurnCount} times in a row. This indicates a cycle in execution of the dialog and hence dialog execution will be terminated.

Resolution: Make sure the topic ends properly and links to other topics that end properly, such as the Escalate system topic.

LatestPublishedVersionNotFound

Error message: Unable to retrieve the latest published version of the agent.

Resolution: Publish the agent.

OutgoingMessageSizeTooBig

Error message: Outgoing message size too big.

Resolution: Review your nodes to ensure that none of them are using a variable that contains a large volume of text, such as a JSON.stringify() static method. If you use this method or a variable that contains a large volume of text, modify the node to only pass the portion of text that's necessary. For example, if you use an Adaptive Card to pass data to another topic, update the variable to only pass the necessary property.

For more information, see Maximum channel data message size limits when using Copilot Studio in Omnichannel.

OpenAIRateLimitReached

Error message: An error has occurred.

Resolution: Your agent reached the maximum number of generative answers responses. Review your message capacity, and open a support request to increase your generative answers rate limit.

RedirectToDisabledDialog

Error message: The Dialog with Id {DialogId} is disabled in the definition. Please enable the Dialog before using it.

Resolution: Re-enable the topic or remove the redirect node.

RedirectToNonExistentDialog

Error message: The Dialog with Id {DialogId} was not found in the definition. Please check that the Dialog is present and that the Id is correct.

Resolution: Create a new topic to redirect to, or remove the redirect node.

SystemError

Error message: This error doesn't produce an error message.

Resolution: Contact customer support.

TooMuchDataToHandle

Error message: The request is resulting in too much data to handle, please evaluate the amount of data being returned by your actions.

Resolution: This indicates the request being sent to OpenAI is exceeding the maximum request size allowed. There are a number of things that make up the request including the user input, output from previous actions, tools called, and conversation history. Review the tools you are using, and, where possible, scope down their output to only the necessary fields. For more information, see Create a Power Automate flow and Call a Power Automate flow as an action.