Agentforce issues generally fall into the following categories:
Configuration issues caused by incomplete setup, missing permissions, or improperly configured flows
Data-related issues resulting from missing, outdated, or incorrectly formatted records in Data Cloud
Integration issues involving external APIs, authentication failures, or service call errors
Runtime issues triggered by logic flaws or execution failures during automation
AI prompt issues due to unclear prompt structure or invalid contextual data
The sections below break down each category and outline how to identify, troubleshoot, and resolve them.
Symptoms
Agentforce agents do not execute configured workflows
“Access Denied” or “Insufficient Privileges” errors appear
AI actions are missing or cannot be executed in the UI
Missing user or integration permissions
Flow Orchestration or Einstein Copilot features not enabled
Incorrect object-level access or sharing settings
Verify User Permissions
Confirm the user profile or assigned permission sets include access to Agentforce features such as Manage Flows, Einstein Copilot, and View All Data.
Confirm Feature Enablement
Navigate to Setup → Feature Settings → Agentforce and ensure all required features are enabled.
Review Object Permissions
Validate CRUD and sharing permissions for all Salesforce objects used in the workflow.
Run Flow Debugger
Use Flow Debugger to identify the specific step or condition causing the failure.
Use a centralized permission set group for all Agentforce and AI-related users to ensure consistent access control.
Symptoms
Agentforce responses are incomplete or irrelevant
AI-generated insights appear inaccurate
Automations fail due to missing required values
Data Cloud sync delays or paused data streams
Null, invalid, or outdated field values
Inconsistent relationships between Salesforce records
Check Data Sync Status
Navigate to Data Cloud → Data Streams and verify that all the source data streams are active and syncing successfully.
Review Field Mappings
Ensure correct mappings between source systems and Data Cloud data model objects.
Validate Data Completeness
Use SOQL queries or reports to identify missing, null, or stale records.
Implement Data Quality Rules and alerts to proactively detect and correct data issues.
Symptoms
Agentforce fails to invoke external systems (for example, AWS, Slack, or custom APIs)
Errors such as 401 Unauthorized or 500 Internal Server Error
Slow responses or timeout failures
Expired OAuth tokens or invalid API keys
Endpoint URL changes not reflected in Salesforce
Missing or misconfigured Named Credentials
Validate Named Credentials
Go to Setup → Security → Named Credentials and confirm credentials are active and correctly configured.
Review API Logs
Use Event Monitoring → API Usage Logs to identify failed calls and review HTTP status codes.
Renew Authentication Tokens
Refresh OAuth tokens or reauthorize connected apps as needed.
Test API Connectivity Externally
Use tools such as Postman to verify endpoint availability and behavior outside Salesforce.
Implement retry logic and monitoring alerts for integration failures within flows.
Symptoms
Agentforce processes stop before completing
Errors such as Unhandled Exception or Null Pointer Exception
Unexpected automation loops or logic failures
Incorrect flow logic or uninitialized variables
Recursive triggers or circular dependencies
Salesforce governor limits exceeded
Use Flow Debug Mode
Step through execution paths to identify the failing node or variable.
Review Apex Logs
Inspect debug logs in Developer Console for stack traces and error details.
Monitor Governor Limits
Check limit usage for SOQL queries, DML operations, and CPU time.
Simplify Flow Design
Refactor complex flows into smaller, reusable subflows.
Always configure Fault Paths in flows to handle runtime exceptions gracefully.
Symptoms
AI responses are inconsistent, irrelevant, or incomplete
The agent misinterprets instructions or fails to act
Identical inputs produce different outputs
Ambiguous or poorly structured prompts
Missing or invalid context data
Excessively long prompts causing token constraints
Review Prompt Structure
Ensure prompts clearly define the role, task, and context.
Validate Dynamic Variables
Confirm that all referenced variables (for example, {{Case.Subject}}) contain valid data.
Test Prompt Variations
Iterate on prompt wording and compare output consistency.
Apply Einstein Trust Layer Controls
Filter sensitive or unnecessary data before sending prompts to the LLM.
Document, standardize, and version-control prompts using Salesforce DevOps Center.
Symptoms
"We couldn't create a new version" when cloning agents
Duplicate key value violations during agent deployment
Error: "Required fields are missing: [PlannerId]"
Agents not appearing after metadata deployment
Version control issues between sandboxes and production
Metadata dependencies not properly resolved
Required fields not populated during deployment
Duplicate agent names or API names
Missing referenced components (flows, actions, objects)
Insufficient permissions for deployment user
Validate metadata dependencies in the target org.
Check required fields during agent deployment.
Handle duplicate key value errors by reviewing existing agents.
Follow deployment best practices using sandboxes and change sets.
Test agent activation and functionality after deployment.
Maintain a deployment checklist with all prerequisites. Use DevOps Center or version control to track agent configurations and changes.
Advanced Troubleshooting Techniques
Enable Agentforce debug logs under Setup → Monitoring → Debug Logs.
Use Event Monitoring Analytics to track agent behavior and API calls.
Run Salesforce Health Check to validate org readiness.
Reproduce issues in a sandbox environment before applying fixes in production.
| Error Code | Description | Resolution Tip |
|---|---|---|
| 401 | Unauthorized | Refresh OAuth token |
| 403 | Forbidden | Update user or integration permissions |
| 404 | Not Found | Validate endpoint URL or record ID |
| 429 | Too Many Requests | Implement retry and backoff logic |
| 500 | Internal Server Error | Review logs or contact Salesforce Support |
005305472

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.