Step
ForEach Control.
Message
Invalid array value.
Cause
This error is caused by referencing a path on an object that is not an array. The ForEach step requires that you provide a path on the record to iterate on. The item on that path should be an array, and if that path exists but is not an array, then the error message above will be shown.
Resolution
Make sure that your record contains an array at the given path. In cases where you have multiple records, there may be one record where the item on the path is not an array. Use a Calculator step before the ForEach step to check if the path contains an array, and if not, provide a default empty array.
Error Detail
json
{
"message": "Invalid array value",
"statusCode": 400
}