Issue in automation Collect Data / steps.n.success fails #13460
Labels
bb-automations
Budibase Automations related work
bug
Something isn't working
firestorm
Data/Infra/Revenue Team
The Collect Data "fails" when trying to get the result of a previous step.
The handle bar is ok I think {{ steps.6.success }}, and it runs fine in the builder when I test the automation, but fails in published app. All other previous steps before 6 are also OK.
I serialiized steps in backend log.
And there are two null values between step 5 and 6. So the steps.6 resolves to null.
So far I guess it is probably because in step 4 there is Delete Row, inside a loop, but if the loop has no iteration (empty array) as the previous query in Step 4 returns [], so there maybe null values for the loop and another null for the delete?? (just a guess...).
see: https://discord.com/channels/733030666647765003/1227913272838328320
Serialization of steps :
[ {}, {
"success": true,
"result": true,
"refValue": 14,
"comparisonValue": 0
}, {
"success": true,
"result": true,
"refValue": 83080682,
"comparisonValue": 1
}, {
"success": true,
"result": true,
"refValue": "[{"_id":"ro_ta_07c7df53dc90433c99fa16cb6d7f98fc_f868970973fc49c7a168566e4ceedc72","primaryDisplay":"83080682"}]",
"comparisonValue": "0"
}, {
"rows": [],
"success": true
}, null, null, {
"row": {
"tableId": "ta_81016989d5da4fe792db0b92e7e98d88",
...
"_id": "ro_ta_81016989d5da4fe792db0b92e7e98d88_e3f373f6a2734ca6933ba201e455b8cb"
},
"response": {
"tableId": "ta_81016989d5da4fe792db0b92e7e98d88",
...
},
"id": "ro_ta_81016989d5da4fe792db0b92e7e98d88_e3f373f6a2734ca6933ba201e455b8cb",
"revision": "1-bcd7f204821ef1a8f24a49f265c7efc9",
"success": true
} ];
The text was updated successfully, but these errors were encountered: