Increment function no longer works

Last year I created an automation as part of a lottery for our Christmas Advent Calendar that worked liked this: The first 3 registrations won a prize (first come, first served) and all others went empty handed.

The scenario worked like this:
The next module after the webhook was the increment function. The first 3 webhooks received would be routed in one direction (to a success email) and all others (4+) would be routed in another direct (“Sorry” email).

Last year it worked perfectly. This year it doesn’t work at all.

The increment function displays the error message “Cannot read properties of undefined (reading ‘reset’)”

How can I fix this?

Hi @webdienste,

Can you share with us the settings of the increment function?

Cheers,
Henk

Hi Henk,
For some strange reason, after I set up a completely fresh scenario, it is working again. I am trying to figure out why. What I did before was I cloned previous scenarios and then simply replaced the increment function module with another fresh increment function module (there were a lot of similar scenarios and I wanted to same time). Could it be that the cloning process is what casued the problem?

Hi,

Great that the problem is solved! Based on what you say, I would say that the cloning process is the issue indeed. (although I haven’t run into this problem before)

Maybe the reset value of the module was corrupted or emptied upon cloning, which would’ve caused the issue.

Cheers,
Henk

Thanks for the help. I greatly appreciate it.

I think, in order to add context for anyone else who has this problem, I will add how it was set up:
After the webhook, the increment module was added (setting “never”) and filters were used to pass on to the further steps (send email, add to CRM).
The two filters added
Filter 1: increment module output is less than or equal to 3 (numeric operator)
Filter 2: increment module output is greater than or equal to 4 (numeric operator)

What is interesting is that I use the increment module as part of a chain without filters and this works fine even after cloning. It is only the specific type above that caused problems.