Sales / Agentforce
Testing Center: Object-typed context variable in an Agent Test column always fails with "Sync API returned HTTP 400"
- Reported
- Nov 26, 2026
- Updated
- Nov 26, 2026
- Fixed
- —
- Reports
- 0
- Found in
- Winter '27
- Reference
- W-25027169
Summary
In Agentforce Testing Center, an Agent Test column can bind a Grid column to a context variable whose type is set to Object. When it does, every row in the column fails with "Sync API returned HTTP 400", whatever the cell contains. Testing Center sends the cell value to the Agent API as a plain string. The Agent API requires an Object-type variable value to be a JSON array of {name, type, value} entries, so it rejects the request. Correcting the cell value to valid JSON does not help. Rerunning the failed rows may also fail, so the suite may not recover on its own.
Workaround
Workaround until the fix lands: if the agent can accept it, change that variable to Text and parse it in the agent or flow. Otherwise, leave that variable out of the Agent Test column for now.
Steps to reproduce
1. Create a Testing Center suite with one context-variable column (for example $Context.ChannelType) and an Agent Test column.
2. Set row 1 to WhatsApp. Set row 2 to [{"name":"code","type":"Text","value":"US"}].
3. Run the suite. Both rows succeed while the context variable type is Text.
4. Change the Agent Test column's context variable type to Object.
5. Reprocess the Agent Test column.
6. Expected: the value is passed to the agent as a structured Object.
7. Actual: both rows fail with "Sync API returned HTTP 400" (ERR001, not retryable).
Error details
An internal service error occurred. Please provide this request ID to customer support: Sync API returned HTTP 400 ERR001 (not retryable)
Status timeline
Nov 30, 2026
created · In Review · 0 reports
Nov 30, 2026
content changed · In Review · 0 reports