Skip to main content
Question

count


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.

6 replies

erik_jan
Contributor
Forum|alt.badge.img+18
  • Contributor
  • May 25, 2018

Have you tried the Counter transformer?


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • 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+18
  • Contributor
  • May 25, 2018
gio wrote:

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.


erik_jan wrote:

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.


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