Search code examples
talendrowcountdata-integration

Talend tFileInputDelimited row count


I want row count which is mentioned in the image, to be used in my expression. How can I access it?

Image is here:

image is here


Solution

  • As mentioned in the documentation, there are several available variables. It depends on the place where you want to use the variable if it is already filled. This is from the aforementioned page:

    NB_LINE: the number of rows processed. This is an After variable and it returns an integer.

    So in your case this would be

    ((Integer) globalMap.get("tFileInputDelimited_2_NB_LINE"))
    

    Talend also offers those variables in component input fields if you press Ctrl + Space.