Skip to main content
Solved

Why is my Counter transformer giving me a weird value back?


fmelizard
Safer
Forum|alt.badge.img+18

I have a workspace that's reading in some data and I've added a counter after it. The Counter is giving me some valid count numbers, but a lot of the attribute are a weird string like this: 

`@Value(__fme_ft_return_valuebbc4ad18-5750-4f14-a514-caca849d5cc2)'

Best answer by fmelizard

This problem with the Counter is now fixed in FME 2019.2.3.1, build 19823 and also recent 2020 beta builds.

View original
Did this help you find an answer to your question?

4 replies

Forum|alt.badge.img+2

Hi @fmelizard

 

 

This is a bug with the Counter that we're seeing in FME 2019 (observed a few times after Excel readers).

 

 

This has been tracked in issue FMEENGINE-61413. If you encounter this issue please raise a support ticket here.

 

 

To workaround this issue you can add another transformer in front of the counter, like an AttributeKeeper.

 

 

You could also try using the Count() FME function inside an AttributeManager which will start counting from 0. If you want to start counting from 1, use the Arithmetic Editor and enter @Count()+1 like this:

 

 

 


fmelizard
Safer
Forum|alt.badge.img+18
  • Author
  • Safer
  • Best Answer
  • February 18, 2020

This problem with the Counter is now fixed in FME 2019.2.3.1, build 19823 and also recent 2020 beta builds.


pdorio
Contributor
Forum|alt.badge.img+4
  • Contributor
  • October 29, 2020

I can find a workaround by adding a FeatureHolder before the Counter


  • September 21, 2021

The workaround with the FeatureHolder worked for me, but the problem was (in my case) at the beginning of the workspace. The name of an attribute ends with a blank ("Adresse " instead of "Adresse"). Once the data was corrected, the Counter worked fine.


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