Comments and answers for "Counter error: doesn't give progressive numbers" https://knowledge.safe.com/questions/95412/counter-error-doesnt-give-progressive-numbers.html The latest comments and answers for the question "Counter error: doesn't give progressive numbers" Comment by takashi on takashi's answer https://knowledge.safe.com/comments/95618/view.html < div class = "fr-view clearfix">

@silviati, we all guess that you have set an identical Counter Name (not Count Output Attribute - ID, ID_SHEDA) to the multiple Counters and also left Global their Counter Scope.

Why not share the workspace containing two Counters, which reproduces the problem?

Fri, 19 Jul 2019 10:12:00 GMT takashi
Comment by redgeographics on redgeographics's comment https://knowledge.safe.com/comments/95606/view.html < div class = "fr-view clearfix">

It would really help us if you could share that second workspace, the one that you mention.

I think I have it reproduced though:

Note that both Counters have the same Counter Name value and are set to Global. Changing both to Local solves it in my case and while it doesn't seem to have an effect it probably wouldn't hurt to set them to different counter names too.

Fri, 19 Jul 2019 07:39:50 GMT redgeographics
Comment by silviati on silviati's answer < div class = "fr-view clearfix">

I had a very large workspace to run; given that I got this error, I made another workspace where only counters are running (only two).

I tried to use both Global and Local and now it is set al local. The name of the field where the counter should save the numbers are: ID and ID_SCHEDA, that shoould be my two new IDs of my table.

Given that I am working with Oracle tables, I am thinking of getting around this using an Oracle sequence.


Fri, 19 Jul 2019 06:47:41 GMT silviati
Answer by takashi < div class = "fr-view clearfix">

Hi @silviati, to clarify the situation, please answer these questions.

  • How many Counters are there in the workspace?
  • What name have you set to the Counter Name parameter for each Counter?
  • Which one have you set to the Count Scope parameter - Global or Local?
Fri, 19 Jul 2019 03:02:57 GMT takashi
Comment by katrinaopperman https://knowledge.safe.com/comments/95580/view.html < div class = "fr-view clearfix">

Hello,

Just to let you know I have the same issue! I tried using an in-line counter too, (@sum(@double(@Count()),1.0)), and still got skipped values and the numbers would exponentially increase each time I ran the script. Please let me know if you solve it!

Thank you!

Thu, 18 Jul 2019 23:07:57 GMT katrinaopperman
通过oscard oscard的评论发表评论 https://knowledge.safe.com/comments/95448/view.html < div class = "fr-view clearfix">

Could you share the workspace or a screenshot of it? And a screenshot of your Counter parameters? Which version of FME are you using? It's a weird behaviour for the Counter, so I guess the problem could be in what you do before it.


Wed, 17 Jul 2019 08:04:25 GMT oscard
Comment by silviati on silviati's answer < div class = "fr-view clearfix">

Actually I tried both; however, I don't think this is a problem strictly referred to the Counter or its parameters because I get the same errors using the Arithmetic Editor.

Wed, 17 Jul 2019 07:42:43 GMT silviati
Answer by david_r < div class = "fr-view clearfix">

If setting the count scope to "Local" on the Counter doesn't help, consider posting a screen shot of the Counter parameters here.

Wed, 17 Jul 2019 05:57:15 GMT david_r
Answer by jdh https://knowledge.safe.com/answers/95423/view.html < div class = "fr-view clearfix">

Is your count scope local or global?

Tue, 16 Jul 2019 16:54:46 GMT jdh