Skip to content

Conversation

@patrixr
Copy link

@patrixr patrixr commented Aug 22, 2025

I observed some weird behaviors when testing a custom node which was used with continueOnFail(), and would return the items, as is done in this example.

Issues:

  • Records are being pushed in the items array within a loop over them, this essentially causes an infinite loop. I fixed that loop by adding itemCount
  • Upon fixing the infinite loop, I noticed both success and error branches of the node would activate, that was because the pushed item had an error field (which triggers the error branch), but the original item was still present without an error field (which trigger the success branch)

I've managed to get a proper working behaviour with this change. There may be better fixes to this, but this approach worked for me.

I observed some weird behaviors when testing a custom node which was used with `continueOnFail()`, and would return the items, as is done in this example.

## Issues:

- Records are being pushed in the `items` array within a loop over them, this essentially causes an infinite loop. I fixed that loop by adding `itemCount` 
- Upon fixing the infinite loop, I noticed both `success` and `error` branches of the node would activate, that was because the pushed item had an `error` field (which triggers the error branch), but the original item was still present without an error field (which trigger the success branch)

There may be better fixes to this, but this approach worked for me.
@CLAassistant
Copy link

CLAassistant commented Aug 22, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants