Catch the line Number that's being processed from fileinput in tMAP
Hi
It's possible the tMap catch the line number that it's being processed? My goal is to inform which lines of the file dosn't meet the constraints ...
(see image in attach)
I have a similar problem (but with Java).
I have a tFileInputDelimited followed by a tMap (connected by a Main connection).
Within the tMap I need to catch the current line number of the tFileInputDelimited.
I used:
((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE"))
but it crashes at runtime with a Null Pointer Exception.
I think this is because the NB_LINE is defined "after" the tFileInputDelimited input loop and not "during" the loop.
Someone can tell me if it's possible to catch the current line number during the loop?