Hi community,
We are encountering a page-blocking "412 Precondition Failed" error when attempting to use or preview any Committed version of our DSL-enabled Agentforce Service Agent (agentDSLEnabled set to true).
Symptoms:
- Draft editor works fine: We can make changes to the agent Draft in the Agentforce Builder without issues.
- Committed versions fail: As soon as we select any Committed version (e.g., Version 1 Committed) in the Builder, the Preview chat panel fails to connect and displays: "Something went wrong. Refresh and try again."
- Console/API Error: Inspecting the browser console shows that the background session call returns:
- Endpoint: /services/data/v61.0/einstein/ai-agent/v1/agents/{agentId}/sessions (also fails with the same error on the external sessions API via Postman).
- Response Code: 412 Precondition Failed
- Error Message: {"message":"Unable to load agent config: Invalid Config"}
Has anyone else run into this issue where the compiler or orchestrator fails to load/resolve the config only for Committed versions? Is this related to Data Cloud retriever target URIs or sandbox metadata sync issues?
Any advice or workarounds would be highly appreciated. Thanks!
#Agentforce
I tried again yesterday, August 10. The error message was a lot more clear.
I had missing inputs and outputs in my Retrievers.
I supplied those missing fields, and the agent works now when Committed (and Activated) on both Agent API and Salesforce UI.