Counter module not working

Status: Open · Asked by Dan Cook on · 0 views

Dan Cook — Question ·

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 Soni — Reply ·
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.
Dan Cook — Reply ·
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
Arshil Ahmad — Reply ·

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.

Dan Cook — Reply ·
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.

Thanks Arshil!

Will my routers still work properly?
One of them is supposed to trigger once it reaches the array count.

Arshil Ahmad — Reply ·

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

Back to all forum threads · Log in to reply