Agent Service Reasoner Errors

The Agent Service Reasoner manages agent conversations on two surfaces: the multi-agent orchestration layer, where connected subagents collaborate to complete complex tasks, and the single-agent reasoning endpoint, where individual agents process requests from users and calling applications. Errors from this service typically indicate that a request was malformed or missing required context, that the requested agent or session couldn’t be found, that the caller lacked permission, or that a language model call timed out, was rate limited, or encountered a service-side failure.

The multi-agent orchestration service couldn’t load the agent’s configuration because it conflicts with the agent’s current state. The service can’t read the configuration right now, so it can’t continue the request.

This error occurs when:

  • The agent version is being activated, deactivated, or changed.
  • The agent’s configuration is in a state that conflicts with the request.

To resolve this error:

  1. Check whether the agent version is being activated, deactivated, or changed.
  2. Confirm the agent version you’re targeting is in the state you expect, then send a new request.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_AGENT_CONFLICT
  • The agent ID and agent version you targeted

The agent you targeted is a legacy (v1) agent, which the v2 API doesn’t support. Legacy agents are agents created in the legacy Agentforce Builder. You can’t start a session with this agent through the v2 API, so use the v1 start session flow instead.

This error occurs when:

  • The agent was created in the legacy Agentforce Builder.
  • A client that tries the v2 API first, such as a voice integration that’s moving to v2, reached a legacy agent.

To resolve this error:

  1. Start the session again using the v1 start session flow for this agent.
  2. To use the agent with the v2 API, rebuild it in the new Agentforce Builder, then publish and activate it.
  3. If your client handles this case automatically, identify it by the error code A2A_AGENT_MOVED_V1. Other multi-agent orchestration errors can look similar.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_AGENT_MOVED_V1
  • The agent ID and agent version you targeted

A request to the multi-agent orchestration service was malformed or contained invalid parameters. The service received the request but rejected it because of an unsupported message type, invalid input variables, or a request structure it couldn’t process. Retrying the same request won’t help. The request itself needs to be corrected first.

This error occurs when:

  • The request was missing required fields or used an unsupported message type.
  • The agent’s input variables were invalid: wrong types, unknown variable names, or malformed values.
  • The request structure didn’t match the format the service expects.

To resolve this error:

  1. Check the detail field in the error response. It includes a specific reason for the rejection.
  2. Validate the request against the connected subagent’s configuration before resending.
  3. If you constructed the request manually, compare it to a working example from the agent’s published configuration.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_BAD_REQUEST
  • A redacted copy of the request

Another task is already in progress for this conversation. The service rejected the new request to prevent concurrent tasks from corrupting the conversation’s state. Wait for the active task to finish and try again.

This error occurs when:

  • A follow-up message was sent before the previous task finished.
  • A retry of an earlier request arrived while the original task was still running.

To resolve this error:

  1. Wait at least 5 seconds for the active task to complete, then try again. If your agent typically runs longer tasks, you may need to wait longer before trying again.
  2. Send requests for a conversation one at a time. Don’t start the next task until the previous one returns its final response.
  3. If the conflict continues well beyond the expected task duration, check trust.salesforce.com for known incidents.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_CONFLICT
  • The conversation context ID and the approximate time when the conflict occurred

A request to the multi-agent orchestration service failed validation before it was processed. The request structure or data types didn’t match the expected format. Retrying the same request won’t help. The request needs to be corrected first.

This error occurs when:

  • A field has the wrong data type, such as a number where text is expected.
  • A required field is missing from the request or the connected subagent’s configuration.
  • The request contains malformed content, such as invalid characters or missing brackets.

To resolve this error:

  1. Check the detail field in the error response. It identifies which field failed and why.
  2. Compare your request to the connected subagent’s published configuration to verify the expected format.
  3. If you’re constructing the request manually, validate it before sending.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_DESERIALIZATION_ERROR
  • The full detail text from the error response (it identifies the failing field)
  • A redacted copy of the request

The agent, session, or task referenced in the request couldn’t be found. It may not exist, may have expired, or may not be accessible to the authenticated user. Retrying won’t help. The identifier needs to be correct before the request can succeed.

This error occurs when:

  • The agent ID doesn’t match a registered agent.
  • The task or session ID has expired or was never created.
  • The request references a resource that belongs to a different org or user.

To resolve this error:

  1. Verify the agent, task, or session ID is correct and hasn’t expired.
  2. If the resource was created earlier in a flow, confirm it hasn’t been cleaned up.
  3. Confirm you’re authenticated as the user who owns the resource.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_NOT_FOUND
  • The agent ID, task ID, or session ID the request was targeting

The request to the multi-agent orchestration service exceeds the size limit. The service rejected it before processing. Reduce the size of the request before retrying.

This error occurs when:

  • A field in the agent’s input variables contains embedded file data that should be passed as a reference instead.
  • Input variables have accumulated data across multiple turns and the total has grown too large.
  • The full conversation history is being resent with each request instead of relying on the session state.

To resolve this error:

  1. Identify which input variables are largest and reduce or remove them.
  2. Replace embedded file data with references the agent can look up on demand.
  3. Remove accumulated history the agent doesn’t need to see again.
  4. Resend the request with the reduced input.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_PAYLOAD_TOO_LARGE
  • The approximate size of the request

The authenticated user doesn’t have permission to perform this action. The identity was confirmed, but the account lacks the required access to the agent or session being requested. Retrying won’t help. The permissions need to change first.

This error occurs when:

  • The user doesn’t have the required permission set for the agent.
  • Your org’s settings don’t allow this type of access for this user.
  • The request is targeting an agent, task, or session that belongs to a different user or org.

To resolve this error:

  1. Confirm the user’s permissions include access to the agent they’re trying to reach.
  2. If acting on behalf of another user, verify that delegated access is in place.
  3. If access should be allowed, contact your Salesforce admin to review the permissions.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_SECURITY_ERROR
  • The agent ID or task ID the request was targeting

This error code indicates an unexpected system error and not an issue with your configuration. If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_SYSTEM
  • Any context that might help with the investigation, such as when the error occurred, what you or your end user were doing at the time, and whether you’re able to reproduce it

A request to the multi-agent orchestration service timed out before it completed. This is usually a temporary issue. Wait a moment and try again.

This error occurs when:

  • A reasoning step or AI model call took longer than the allowed time.
  • A platform dependency was slow or under load when the request was made.

To resolve this error:

  1. Wait at least 2 seconds, then try again. Most timeouts are temporary.
  2. If the request consistently times out, try simplifying it: use fewer input variables or a shorter prompt.
  3. If retries keep timing out, check trust.salesforce.com for known incidents.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_TIMEOUT
  • Whether retries also timed out

The request to the multi-agent orchestration service couldn’t be authenticated. The service couldn’t verify your identity because authentication credentials were missing or invalid. Retrying without a valid session won’t help.

This error occurs when:

  • The request didn’t include the expected authentication credentials or session token.
  • The authentication context was removed by a gateway between your client and the service.
  • The session token is stale or malformed.

To resolve this error:

  1. Check the detail field in the error response. It identifies which part of the authentication context was missing.
  2. Re-authenticate to get a fresh session and try again.
  3. If you’re connecting through a gateway, verify that authentication headers aren’t being stripped in transit.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: A2A_UNAUTHORIZED
  • The detail value from the response (which authentication field was missing)

The agent identifier in your request couldn’t be resolved to an agent that exists and is visible to the caller. No agent work was started. Retrying won’t help until the identifier is corrected or access is confirmed.

This error occurs when:

  • The agent identifier is misspelled, truncated, or belongs to a different org.
  • The agent was deleted or hasn’t finished being provisioned.
  • The agent exists but the caller doesn’t have permission to access it.
  • The request was sent to a different environment than the one the agent is deployed in.

To resolve this error:

  1. Confirm the agent identifier exactly matches the one shown in Setup for the target org.
  2. Verify you’re calling the environment where the agent is deployed.
  3. Confirm the calling user or integration has access to the agent.
  4. If the agent was created recently, allow provisioning to finish and try again.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_AGENT_NOT_FOUND
  • The environment you called and the approximate time of the request

Your request to the single-agent reasoning service was malformed or contained invalid parameters. The service rejected it, so the agent couldn’t process your request. No more specific error code was available to describe the problem.

This error occurs when:

  • The request was malformed or contained invalid parameters.

To resolve this error:

  1. Use the detail field in the error response to find what to correct.
  2. Compare your request to the API schema and correct any invalid parameters.
  3. Send the corrected request.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_BAD_REQUEST
  • The approximate time of the request in UTC

Your request to the single-agent reasoning service conflicts with the current state of its session or of another item the request depends on. The service rejected the request, so you can’t continue until the conflict is resolved.

This error occurs when:

  • The request conflicts with the current state of the session.
  • The request conflicts with the state of another item it depends on.

To resolve this error:

  1. Refresh the state of the session and anything else your request depends on.
  2. Resolve the conflict.
  3. Send a new request.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_CONFLICT
  • The approximate time of the request in UTC

Your request to the single-agent reasoning service didn’t match the expected schema. The request failed validation, so the service rejected it and the agent couldn’t process it.

This error occurs when:

  • A field name doesn’t match the API schema.
  • A field has a value of the wrong type.

To resolve this error:

  1. Compare the field names and value types in your request to the API schema.
  2. Correct any that don’t match.
  3. Send the corrected request.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_DESERIALIZATION_ERROR
  • The approximate time of the request in UTC

The agent definition supplied with the request didn’t conform to the expected schema. The service validates the definition before starting a session and rejected it before any agent work began. Retrying won’t help until the definition is corrected.

This error occurs when:

  • A required field is missing from the agent definition, or is present but empty.
  • A field has the wrong type (for example, a string where an object is expected).
  • The definition was produced against a different schema version than the one the service accepts.
  • The definition was truncated or corrupted in transit.

To resolve this error:

  1. Validate your agent definition against the published agent schema before sending it.
  2. Check that the definition was serialized completely. Truncation often shows up as a missing trailing field.
  3. If you generate the definition programmatically, confirm you’re targeting the current schema version.
  4. Correct the definition and resend.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_INVALID_AGENT_DSL
  • The schema version your definition targets

This error code indicates an unexpected system error and not an issue with your configuration. If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_INVALID_USER_INPUT_FIELDS
  • Any context that might help with the investigation, such as when the error occurred, what you or your end user were doing at the time, and whether you’re able to reproduce it

This error code indicates an unexpected system error and not an issue with your configuration. If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_LLM_GATEWAY_AUTH_ERROR
  • Any context that might help with the investigation, such as when the error occurred, what you or your end user were doing at the time, and whether you’re able to reproduce it

This error code indicates an unexpected system error and not an issue with your configuration. If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_LLM_GATEWAY_BAD_REQUEST
  • Any context that might help with the investigation, such as when the error occurred, what you or your end user were doing at the time, and whether you’re able to reproduce it

The language model returned a response with no generated content. The agent couldn’t complete the turn with an empty reply, so the request failed. This is usually a temporary issue. Waiting a moment and trying again typically succeeds.

This error occurs when:

  • The model’s safety filters suppressed the entire generation.
  • The prompt left the model with no actionable instruction.
  • The generation stopped immediately at a stop sequence.

To resolve this error:

  1. Wait at least 2 seconds and try again. Generation is non-deterministic and often succeeds on a second attempt.
  2. If the same input consistently returns an empty response, rephrase the user message to be more specific.
  3. Review the agent’s instructions for stop sequences or constraints that could suppress output.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_LLM_GATEWAY_EMPTY_GENERATION
  • Whether the same input reproduces the empty response consistently

This error code indicates an unexpected system error and not an issue with your configuration. If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_LLM_GATEWAY_MALFORMED_RESPONSE
  • Any context that might help with the investigation, such as when the error occurred, what you or your end user were doing at the time, and whether you’re able to reproduce it

The service couldn’t establish a connection to the language model provider and the request never reached the model. This is usually a temporary issue. Waiting a moment and trying again typically succeeds.

This error occurs when:

  • A temporary connection failure occurred between the service and the model provider.
  • DNS resolution or TLS negotiation failed momentarily.
  • A network path or platform component was briefly unavailable.

To resolve this error:

  1. Wait at least 2 seconds and try again. Most connection failures are temporary.
  2. If failures persist for more than a few minutes, check trust.salesforce.com for known incidents.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_LLM_GATEWAY_NETWORK_ERROR
  • Whether the failure is intermittent or affecting all requests

The request exceeded the language model capacity allocated to your org. The model provider refused the call. This is a temporary condition. Waiting before retrying typically succeeds.

This error occurs when:

  • A burst of concurrent conversations exhausted your org’s model quota.
  • An automated workload issued requests faster than the allocated rate.
  • Several agents in the same org competed for the same quota at the same time.

To resolve this error:

  1. Wait at least 5 seconds and try again.
  2. If you’re running automated or batch workflows, spread requests out over time instead of issuing them all at once.
  3. If your org consistently hits this limit during normal use, contact Salesforce Customer Support to discuss your quota.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_LLM_GATEWAY_RATE_LIMIT
  • Your approximate request rate and how long the throttling has been occurring

The language model provider returned a server-side error or was unreachable, so the agent couldn’t generate a response for this turn. This is usually a temporary issue. Waiting before retrying typically succeeds.

This error occurs when:

  • The model provider is experiencing an outage or partial degradation.
  • The provider is temporarily shedding load during a traffic spike.
  • A specific model is temporarily unavailable while capacity is rebalanced.

To resolve this error:

  1. Wait at least 5 seconds and try again.
  2. If retries keep failing, check trust.salesforce.com for known incidents.
  3. If your agent can use an alternative model, switching may restore service sooner.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_LLM_GATEWAY_SERVICE_UNAVAILABLE
  • The model your agent is configured to use and the approximate start time of the failures

The model began streaming a response but the stream ended before the response was complete. Any partial content already delivered isn’t a valid answer, so the turn failed. This is usually a temporary issue. Trying again typically succeeds.

This error occurs when:

  • The model provider emitted an error partway through generation.
  • The connection dropped mid-stream.
  • A streamed event arrived in an unexpected format and couldn’t be interpreted.

To resolve this error:

  1. Wait at least 2 seconds and try again. A fresh generation usually completes.
  2. If interruptions recur on long responses, consider prompting for a shorter answer.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_LLM_GATEWAY_STREAM_ERROR
  • Whether any partial content was received before the failure

The language model didn’t respond within the allowed time and the turn was abandoned. This is usually a temporary issue. Waiting a moment and trying again typically succeeds.

This error occurs when:

  • The prompt was unusually large and generation exceeded the time limit.
  • The model provider was slow under load.
  • The agent had many agent actions available, which enlarged the request.

To resolve this error:

  1. Wait at least 2 seconds and try again. Most model timeouts are temporary.
  2. If timeouts repeat, shorten the conversation input or reduce the number of agent actions available to the agent.
  3. If every request times out, check trust.salesforce.com for known incidents.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_LLM_GATEWAY_TIMEOUT
  • How many retries you attempted and whether any succeeded

The request reached the service without one or more headers required to identify the org, user, or tenant. The service rejected the request before any agent work began. Retrying the same request won’t help until the missing headers are added.

This error occurs when:

  • A required identity header is missing from the request.
  • A proxy or gateway stripped the header before the request reached the service.
  • A header was sent with an empty value, which is treated the same as absent.

To resolve this error:

  1. Compare the request headers against the required set for the endpoint you’re calling.
  2. If you’re calling through a proxy or service mesh, confirm it forwards identity headers rather than dropping them.
  3. Check for empty-string header values. They don’t satisfy the requirement.
  4. Resend the request with the complete header set.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_MISSING_REQUIRED_HEADER
  • The list of headers your client sent (names only, no values)

This error code indicates an unexpected system error and not an issue with your configuration. If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_MISSING_SESSION_CONTEXT
  • Any context that might help with the investigation, such as when the error occurred, what you or your end user were doing at the time, and whether you’re able to reproduce it

An item your request to the single-agent reasoning service needs couldn’t be found, so the service can’t process the request. No more specific error code was available to describe which item is missing.

This error occurs when:

  • The identifier in the request is incorrect.
  • The request was sent to a different environment than the one where the item exists.
  • The item is a session that expired.

To resolve this error:

  1. Verify the identifier in the request is correct.
  2. Confirm you’re calling the environment where the item exists.
  3. If the missing item is an expired session, start a new session.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_NOT_FOUND
  • The approximate time of the request in UTC

Your request to the single-agent reasoning service is larger than the size limit the service allows. The service rejected it, so the agent couldn’t process your request. Reduce the size of the request and send it again.

This error occurs when:

  • The request is larger than the size limit the service allows.

To resolve this error:

  1. Reduce the size of your request.
  2. Send the smaller request.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_PAYLOAD_TOO_LARGE
  • The approximate size of the request

Your agent tried to delegate a task to an external agent, but the external agent denied access to the requested operation. The external agent accepted the credentials, so your agent can’t continue until the identity’s access changes.

This error occurs when:

  • The identity behind the external credential lacks the scopes, roles, or grants that the external agent requires.
  • The authentication provider issued a token with narrower scopes than the external agent expects.
  • The external agent’s access policy changed.

To resolve this error:

  1. Ask the administrator of your authentication provider or of the external agent which scopes or grants the external agent requires.
  2. Have them grant those scopes or grants to the identity that the external credential uses.
  3. If the scopes that the external credential requests changed, update the external credential to match. Then send a new request.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_REMOTE_AGENT_FORBIDDEN
  • The name of the external agent and its external credential, and the approximate time of the first failure in UTC

Your agent tried to delegate a task to an external agent, but the running user doesn’t have access to the external credential principal that authenticates the connection. The request was never sent to the external agent.

This error occurs when:

  • The user’s permission sets don’t grant access to the external credential principal.
  • A permission set was granted to some users and not others, or was removed recently.
  • The named credential for the external agent points to a different external credential than the one you configured access for.

To resolve this error:

  1. In Setup, open the external credential that the external agent’s named credential uses, and note its principal.
  2. Edit the permission set or permission set group assigned to the running user so that it includes access to that principal.
  3. Send a new request to your agent.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_REMOTE_AGENT_PRINCIPAL_ACCESS_DENIED
  • The name of the external agent and its named credential, and the approximate time of the failure in UTC

Your agent tried to delegate a task to an external agent, and the external agent returned a server error. The problem is on the external agent’s side, not in your request or configuration. This is usually a temporary issue, and the same request often succeeds when you try again.

This error occurs when:

  • The external agent’s service is degraded, overloaded, or being deployed.
  • The external agent hit an internal error while processing the delegated message.

To resolve this error:

  1. Wait at least 5 seconds, then try again.
  2. If the error persists, contact the team that builds or operates the external agent and give them the time of the failure.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_REMOTE_AGENT_SERVER_ERROR
  • The name of the external agent, how many times you tried again, and whether any attempt succeeded

Your agent delegated a task to an external agent, but the external agent ended the task without completing it. It reported the task as failed, canceled, or rejected, or it couldn’t find the task.

This error occurs when:

  • The external agent couldn’t fulfill the request and marked the task as failed.
  • The external agent rejected the request because it’s outside the external agent’s capabilities.
  • The external agent canceled the task or lost track of it.

To resolve this error:

  1. Contact the team that builds or operates the external agent. Tell them when the failure happened and what your agent was asked to do.
  2. If the external agent rejects some kinds of requests, update your agent’s instructions so that it delegates only work the external agent supports.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_REMOTE_AGENT_TASK_FAILED
  • The name of the external agent and the approximate time of the failure in UTC

Your agent delegated a task to an external agent, and the external agent didn’t finish within the allowed time. Your agent abandoned the task. This is usually a temporary issue, and the same request often succeeds when you try again.

This error occurs when:

  • The external agent was slow or under load.
  • The delegated task takes longer than the allowed time.

To resolve this error:

  1. Wait at least 2 seconds, then try again.
  2. If timeouts repeat, contact the team that builds or operates the external agent. Ask whether the task can finish faster or be split into smaller requests.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_REMOTE_AGENT_TIMEOUT
  • The name of the external agent, how many times you tried again, and whether any attempt succeeded

Your agent delegated a task to an external agent, but the external agent rejected the credentials from the configured external credential. Agentforce refreshed the credential once, and the external agent still rejected it.

This error occurs when:

  • The client secret, API key, or token stored in the external credential expired or was rotated.
  • The external credential uses the wrong authentication protocol, endpoint, or client ID for the external agent.
  • The external agent’s authorization server no longer recognizes the configured client.

To resolve this error:

  1. In Setup, open the external credential that the external agent’s named credential uses.
  2. Check its authentication protocol and parameters, and update any expired or rotated secrets.
  3. Send a new request to your agent.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_REMOTE_AGENT_UNAUTHORIZED
  • The name of the external agent and its external credential, and the approximate time of the first failure in UTC

Your agent delegated a task to an external agent, and the external agent sent back a response that your agent can’t act on. The external agent may have asked for more input or for authentication, or it may have ended the exchange without a final response.

This error occurs when:

  • The external agent needs more information than your agent sends, so it asks for more input.
  • The external agent requires an authentication step that your agent doesn’t support.
  • The external agent ended its response before sending a final one.

To resolve this error:

  1. Review your agent’s instructions and the information it passes to the external agent. Make sure it supplies everything the external agent needs in a single request.
  2. If the external agent needs an extra authentication step, configure that authentication through the external agent’s external credential instead.
  3. If the external agent ends without a final response, contact the team that builds or operates the external agent.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_REMOTE_AGENT_UNEXPECTED_RESPONSE
  • The name of the external agent and the approximate time of the failure in UTC

The request body didn’t match the schema the endpoint expects. Validation runs at the API boundary before any agent work starts. Retrying with the same body won’t help. The body must be corrected first.

This error occurs when:

  • A required property is missing from the request body.
  • A property has the wrong type, such as a string where a number or object is expected.
  • An enum-valued property was sent with a value outside the accepted set.
  • The body isn’t valid JSON or was truncated in transit.

To resolve this error:

  1. Read the errors array in the response. Each entry names the specific field that failed and why.
  2. Correct every listed field before resending. Validation reports all failures at once.
  3. Validate your payload against the published API schema if failures persist.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_REQUEST_VALIDATION_ERROR
  • The field names reported in the errors array

The user or application that sent the request was authenticated, but it doesn’t have permission to perform this action. The service rejected the request, so the action can’t be completed until the permissions change.

This error occurs when:

  • The caller’s scopes don’t include the access the request needs.
  • The caller doesn’t have access to the org.
  • The caller doesn’t have permission to use the agent.

To resolve this error:

  1. Verify the caller’s scopes include the access the request needs.
  2. Confirm the caller has access to the org.
  3. Confirm the caller has permission to use the agent.
  4. After you update the permissions, send a new request.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_SECURITY_ERROR
  • The approximate time of the request in UTC

The conversation session referenced in your request isn’t in the session store. Sessions are kept for a limited time, so this usually means the session expired, was ended, or the identifier is incorrect. Retrying against the same session won’t help. A new session must be started.

This error occurs when:

  • The session exceeded its retention window and was removed.
  • The session was ended by an earlier request.
  • The session identifier is misspelled or came from a different environment.
  • The client reused a session identifier from a previous run.

To resolve this error:

  1. Start a new session and retry the turn against it.
  2. If your client caches session identifiers, expire that cache when a session ends.
  3. Confirm you’re sending the identifier returned by the most recent session-start call for this environment.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_SESSION_NOT_FOUND
  • How long the session had been idle before the failing request

This error code indicates an unexpected system error and not an issue with your configuration. If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_SYSTEM_ERROR
  • Any context that might help with the investigation, such as when the error occurred, what you or your end user were doing at the time, and whether you’re able to reproduce it

Your request to the single-agent reasoning service timed out because an operation the agent depends on didn’t finish in time, so the agent couldn’t complete it. This is usually a temporary issue. Wait a moment and try again.

This error occurs when:

  • An operation the agent depends on took longer than the allowed time.

To resolve this error:

  1. Wait at least 2 seconds, then try again. Most timeouts are temporary.
  2. If the request times out a second time, check trust.salesforce.com for known incidents.

If the request times out two or more times, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_TIMEOUT
  • The approximate time of the request in UTC

Your request to the single-agent reasoning service couldn’t be authenticated because it didn’t include valid authentication credentials. The service rejected the request, so the agent can’t process it until you authenticate.

This error occurs when:

  • The request didn’t include valid authentication credentials.

To resolve this error:

  1. Re-authenticate to get fresh credentials.
  2. Send a new request.

If the issue persists, contact Salesforce Customer Support with the following information.

  • The trace ID from the error response (instance field, format urn:trace:...)
  • The error code: PLANNER_UNAUTHORIZED
  • The approximate time of the request in UTC