Why we can't get NB_LINE of tFileInputDelimited on flow?

Four Stars

Why we can't get NB_LINE of tFileInputDelimited on flow?

Hi Master,
Why we can't get NB_LINE of tFileInputDelimited on flow? for example i have a simple job :
tFileInputDelimited ---Main ---- tJava_1
            |
On Component OK
            |
      tJava_2
tJava_1 :
System.out.println("On Flow : "+((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")));

tJava_2 :
System.out.println("On Component OK : "+((Integer)globalMap.get("tFileInputDelimited_1_NB_LINE")));

 when i run this job it give me :
On Flow : null
On Component OK : 11

Is there any way to get line number on Flow?
Thank you and best regards
Moderator

Re: Why we can't get NB_LINE of tFileInputDelimited on flow?

Hi,
Have you tried to use components TalendHelpCenter:tFlowMeterCatcher and TalendHelpCenter:tFlowMeter?

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.