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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
Edith1
Creator
Creator

How do I get total number of rows iterating for component tHashOutput?

I've tried using (Integer)globalMap.get("tHashOutput_1_NB_LINE"), however, I only get the last number or rows it processed.

I've tried using (Integer)globalMap.get("tHashOutput_1_COUNT"), however, I'm getting a null result.

I need to fix the error

The hash is not initialized "

by adding run-if rows exist for tHashOutput.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

The global variable ((Integer)globalMap.get("tHashOutput_1_NB_LINE")) should be used in next subjob, eg:

tFileInputDelimited--tHashOutput

|onsubjobok

tJava

on tJava, you can use the global variable.

 

There is no global variable (Integer)globalMap.get("tHashOutput_1_COUNT").

 

Regards

Shong

View solution in original post

3 Replies
madhukolli2003
Contributor III
Contributor III

Hi @Edith Murillo​ ,

Can you please elaborate your question and upload your job image ?

Anonymous
Not applicable

Hi

The global variable ((Integer)globalMap.get("tHashOutput_1_NB_LINE")) should be used in next subjob, eg:

tFileInputDelimited--tHashOutput

|onsubjobok

tJava

on tJava, you can use the global variable.

 

There is no global variable (Integer)globalMap.get("tHashOutput_1_COUNT").

 

Regards

Shong

Edith1
Creator
Creator
Author

Thanks again @Shicong Hong​