Hi everyone,
If you are testing your agents locally using Agentforce DX / Vibes and hitting a generic "Something went wrong" error pointing to missing permission sets (like AgentforceServiceAgentBase or EinsteinGPTPromptTemplateUser) during live test execution, check your sub-agents.
The Issue: This often happens due to an unpopulated reference in the agent script under Local Events. The Fix: Look at your Check Events action under your local sub-agent. If the Reference action type is blank, manually select or set it as a Prompt Template. You can right-click the script and run AFDX: Validate This Agent to verify your structure before starting the simulation server again.
Hope this saves some troubleshooting time!
#Agentforce #VSCODE #Apex
If you’re testing locally with Agentforce DX / Vibes and get a generic “Something went wrong”
error mentioning missing permission sets like AgentforceServiceAgentBase or EinsteinGPTPromptTemplateUser, don’t only check permissions.
In some cases, the real issue is an unpopulated reference in the agent script.
Go to your Local Events sub-agent and check the Check Events action. If the Reference action type is blank, set it to Prompt Template.
Then right-click the agent script and run
AFDX: Validate This Agent before restarting the simulation server.