Skip to main content
Solved

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

  • January 10, 2020
  • 4 replies
  • 94 views

fmelizard
Safer
Forum|alt.badge.img+20

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

Forum|alt.badge.img+2
  • 364 replies
  • January 10, 2020

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+20
  • Author
  • Safer
  • 3719 replies
  • 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+8
  • Contributor
  • 15 replies
  • October 29, 2020

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


  • 1 reply
  • 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.