Counter module not working

dan90

Member
Your Task History ID
IjU3NjUwNTY5MDYzZTA0M2M1MjZhNTUzNjUxMzM1MTYwNTQzNDBmMzQi_pc
Hi there

I'm using get count on an array before it's processed, then incrementing a counter as the array is processed.
The idea is to use a conditional filter that only triggers when the array count and the counter match.
However, my counter seems off as it's increasing unexpectedly.

For example, the first count for this task shows 0 + 1 = 460, which doesn’t make sense. It seems like the counter isn’t resetting properly between runs, or something else is going on.

Any ideas on what might be causing it?

Thanks!
 

Himesh

Active member
Hi there

I'm using get count on an array before it's processed, then incrementing a counter as the array is processed.
The idea is to use a conditional filter that only triggers when the array count and the counter match.
However, my counter seems off as it's increasing unexpectedly.

For example, the first count for this task shows 0 + 1 = 460, which doesn’t make sense. It seems like the counter isn’t resetting properly between runs, or something else is going on.

Any ideas on what might be causing it?

Thanks!
Hello @dan90 , You need to reset the counter, count the array and put that value in reset count field. If you are still not able to solve this on your own feel free to DM me and we can do a free zoom call. FYI I'm not from Pabbly Connect team, just a freelancer who helps other Pabbly users.
 

dan90

Member
Hello @dan90 , You need to reset the counter, count the array and put that value in reset count field. If you are still not able to solve this on your own feel free to DM me and we can do a free zoom call. FYI I'm not from Pabbly Connect team, just a freelancer who helps other Pabbly users.
Thank you for responding. The options for resetting it seem to be either reset every time it iterates or when it gets to a certain number. How do I have it reset when the workload is run? Thanks
 

ArshilAhmad

Well-known member
Staff member
We have mapped the Array Count in your 'Counter' action step. This should allow your workflow to reset the counter once it reaches the array count.
1750528263814.png
 

ArshilAhmad

Well-known member
Staff member
The routers should work properly; we suggest testing them once. We have changed the Initial Value in your Counter step to 1. Please test the workflow to ensure it is functioning as expected. Just make sure not to click the 'Save & Send Test Request' button in the Counter step
1750533288439.png
 
Top