Make sure ----Append to array variable is inside the same Apply to each row loop
The action must be nested directly inside the loop where freight_weight is being processed.
Use item() instead of the loop name
Replace:
items('Apply_to_each_row_2')?['freight_weight']
With:
item()?['freight_weight']
This avoids issues if the loop name changes.
Check the JSON object in Append to array
Example:
{
"row": "@{add(iterationIndexes('Apply_to_each_row_2'),2)}",
"column": "freight_weight",
"value": "@{item()?['freight_weight']}",
"errorMessage": "Freight weight is missing or not a valid number"
}
If using iterationIndexes(), verify the loop name
The error message indicates Apply_to_each_row_2 may not exist anymore.
Either update the loop name or remove the row calculation temporarily to test.
If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
Regards,
Riyaz