Skip to main content
Question

Global counter not working as expected

  • September 5, 2022
  • 3 replies
  • 46 views

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?

3 replies

  • Author
  • September 5, 2022

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)


ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • September 5, 2022

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


Forum|alt.badge.img+2
  • September 6, 2022

@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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings