Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Catch the line Number that's being processed from fileinput in tMAP

Hi 0683p000009MACn.png

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)

Thanks in advance 0683p000009MACn.png
Labels (2)
3 Replies
Anonymous
Not applicable
Author

$nb_line_tFileInputDelimited_1 should be fine 🙂
_AnonymousUser
Specialist III
Specialist III

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?
Anonymous
Not applicable
Author

Hi,
you could add a line number with Numeric.sequence to your stream (in a tMap for example).
Bye
Volker