Skip to main content
Question

count

  • May 25, 2018
  • 6 replies
  • 33 views

I need to add an attribute with a running counter to each row in a CSV-file. However, by using @Count() or i.e -4400+@Value(L_SAG_PK) or other similar attribute values, it seems to stop working when the resulting value exeeds 127. How do I generate bigger numeric values.

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.

6 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • May 25, 2018

Have you tried the Counter transformer?


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 2252 replies
  • May 25, 2018

To a existing csv?

You can of course simply expose the "csv_line_number" attribute...


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • May 25, 2018

To a existing csv?

You can of course simply expose the "csv_line_number" attribute...

Only if CSV is also the source of the data.

 

 


The Counter tranformer gives the same result. Counting fine until 127. After that no resulting value at all.


Have you tried the Counter transformer?

The Counter tranformer gives the same result. Counting fine until 127. After that no resulting value at all.

 

 


Found the solution. The resulting attribute was defined as an int8 type, which cannot exeed 127.