Skip to main content

We are deploying an Agentforce Service Agent from one sandbox to another using VS Code CLI.

The deployment to the target sandbox completed successfully. As part of the deployment, we included the following metadata components:

  • Bot
  • GenAIPlannerBundle
  • GenAIFunction

  All components were deployed without errors.

However, when attempting to assign an Agent User to the deployed agent, we encounter the following error:

In the target org:

  • The agent metadata is present
  • An Einstein profile user has been created
  • The user appears to have the required profile and access

  Despite this, the system throws the above error during user assignment.

  Has anyone faced a similar issue when deploying Agentforce agents via CLI?    Are there any additional permissions, licenses, feature enablements, or post-deployment steps required for agent user assignment?

  Any guidance or troubleshooting suggestions would be greatly appreciated.    

1 answer
  1. Mar 2, 7:56 AM

    Hi @Bhartesh Mittal - 

    • Make sure Agentforce / Einstein Generative AI is enabled in Setup.
    • Confirm the user has the correct Agentforce license assigned. Profile alone is not enough.
    • Assign required permission sets like Agent User or Agent Admin.
    • Check the agent is Activated, not just deployed.
    • Log out and back in after assigning permissions.
0/9000