Skip to main content

Hi, I have 2 global counters with the same domain in my workspace (default parameters), but each of them is producing an individual sequence. As per documentation, this should produce for example 0-9 and 10-19, but I'm getting 0-9 from each counter... see the screen attached... am I doing something wrong?

My FME version is 2022.1.1.0 (20220728 - Build 22623 - WIN64) but the same applies for older 2021.2.1.1 (20220104 - Build 21805 - WIN64)


I think this is an issue with Version 3 of the Counter. If you have access to an older version of FME which has Version 2 you can copy paste and use that. Otherwise you can do the following in a couple of attribute creators to get a global count

@Count(count,0)

Note, to get the outcome you are expecting,  i.e. count2 starting from 10, you will need a featureholder between the two transformers creating the count. You may also get unexpected results if you run with feature caching turned on


@dpavlicek​ @ebygomm​ has given a good workaround. We'll try and get this inconsistency addressed. If you put the counters in parallel, you also get the expected result.


Reply