Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Parikhharshal
Creator III
Creator III

Salesforce Row count

Hi Talend Experts

 

I need your help please.

 

I am trying to get row count from TSalesforceInput component (where I have simple query like SELECT Id from TableA) and trying to capture using NB_LINE. The code for NB_Line is written in JAVA3 component 

System.out.println(((Integer)globalMap.get("tSalesforceInput_2_NB_LINE")));

but instead of showing me total counts...... it prints Null ....Null...... My flow is simply like below:

 

0683p000009M09b.png

 

What do I do to get row counts so that I can compare with target counts too?

Labels (2)
12 Replies
Parikhharshal
Creator III
Creator III
Author

System.out.println(((Integer)globalMap.get("tSalesforceInput_2_NB_LINE"))); -> tJava code. I do not need to put back into Tsalesforceinput.
TRF
Champion II
Champion II

At the design level, this job is clean.
Can't figure out the reason of the error you get.
I suggest you to restart with à new job 0683p000009MPcz.png
You may also click on the Code tab to find the compilation error in the Java generated code but it seems strange.
TRF
Champion II
Champion II

Your job should look like this one:

0683p000009Lzvt.png

It compiles and works fine.