Building an Architect flow that pulls user context from NICE Cognigy via a profile token. The Data Action hits the external endpoint, gets a 200 OK, but the mapping step crashes with a parsing error. The payload looks valid JSON when I inspect the raw response in the logs, yet the system refuses to extract the fields. Tried wrapping it in a try-catch block in the subsequent snippet, but the Data Action itself fails before that. Here’s the response structure causing the headache:
{
“status”: “success”,
“data”: {
“userId”: “12345”,
“segments”: [“vip”, “mobile”]
}
}
The error log just says Failed to parse response body. Is there a specific schema requirement for the root object that I’m missing? Does it need a results array instead of a data object? I’ve been staring at this for an hour and can’t see what’s wrong with the structure. The endpoint is definitely returning application/json.