Troubleshooting

Generative AI uses large language models (LLMs) to generate the output. Because LLMs are trained by other organizations, the output isn’t always what you expect, and the code that’s generated isn’t perfect. If the output doesn’t meet your expectations, you can generate a new output by starting over. The generated output from the previous attempt isn’t saved, and the new output replaces it.

To track all known issues and potential workarounds, use the Issues tab in this repo.

If your company requires the use of a proxy, we recommend setting this through the Salesforce CLI, not through VS Code, in order to use the Agentforce for Developers extension.

Use this troubleshooting checklist to identify and eliminate common problems with using Agentforce for Developers.

  1. Check that you are on VS Code version 1.86.0 or higher.
  2. Confirm that you have the Salesforce Extension Pack or the Salesforce Expanded Pack installed.
  3. Check that your Apex Extension is version 59.8.0 or higher.
  4. Hover over {} in the status bar to view the status of the Apex Language Server and make sure it’s running.
  5. Agentforce for Developers requires Salesforce CLI Integration extension version 60.13.0 or higher.
  1. Agentforce for Developers only runs inside a Salesforce project. Confirm that you have a Salesforce DX project open by checking that you have an sfdx-project.json file stored in your workspace. For more information, see Salesforce DX Project Configuration.
  2. Check that your Agentforce for Developers extension is activated using the Developer: Show Running Extensions command. If your extension isn’t activating, file an issue in our GitHub repo.
  3. Make sure you’re connected to a Salesforce org. The status of your default org connection is visible in the status bar.

Default Org

Run the SFDX: Open Default Org command to easily check that your Salesforce extensions are running correctly and that you're connected to a Salesforce org.

Agentforce for Developers is disabled by default in new Code Builder environments. Telemetry is used to audit enablement of Salesforce Generative AI functionality and must be on when you enable the extension:

  1. Go to Settings and search for salesforcedx-vscode-core.telemetry.enabled to confirm that this Salesforce telemetry setting is on in your workspace.
  2. If the setting isn't on, select the checkbox to enable telemetry.
  3. Open a terminal and run sf config set disable-telemetry=false --global to enable CLI telemetry. See Salesforce CLI Data Collection and Metrics for more information.
  4. Run Developer: Reload Window.
  5. Click the Agentforce icon in the status bar and enable the extension.