Skip to main content
Question

Counter output a feature

  • December 16, 2019
  • 4 replies
  • 49 views

helmoet
Forum|alt.badge.img+8

Hi, I tried using a counter in "group by" mode, i.e., by using a countername from an attribute. Feeding the Counter Name attribute from an attribute that has numeric value, produces an error: "Termination Message: 'Counter output a <Rejected> feature. To continue...". I want to count the records for each value in an attribute.

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

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • December 16, 2019

Hi Helmoet,

To count the number of records for each value in an attribute, you can use the StatisticsCalculator, group by the attribute.

Hope this helps.

Erik Jan


helmoet
Forum|alt.badge.img+8
  • Author
  • 195 replies
  • December 16, 2019

This is what I tried:

- Supply a non-numeric counter name --> Same error

- Try find out BADNEWs messages--> Same error, only info about continuation after rejected

- Just continue both Output and Rejected ports (because the count was definitely there...)

 


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • December 16, 2019

On the other hand, your workflow should work.

I tested it , using FME 2019.0, and got the right result:


helmoet
Forum|alt.badge.img+8
  • Author
  • 195 replies
  • December 31, 2019

Hi, @erik_jan, thanks for thinking with me. At the end the trouble appears not to be in the Counter transformer. I used a dynamic setup, however the features reaching the Counter transformer did not have a feature type that was foreseen in the available schema resources in the workspace (due to a previous SQLExecutor). And "it happend" to be the Counter transformer that reported the problem (whereas the writer should have done this). I did an explicit backup of the featuretype and the problem disappeared.

Note: I was trying to generate G3E_CID values for the Intergraph Component Model, which at the end succeeded this way.