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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
BS0612
Contributor II
Contributor II

tOracleBulkExec NB_LINE_INSERTED

Hello,

I am loading an Oracle Database with tOracleBulkExec. It works and the Database is loaded.

Now I trie to post the Global Variable NB_LINE_INSERTED using tJavaFlex and tLogRow connected with OnComponentOk.

System.out.println("NB_LINE_INSERTED: "+(globalMap.get((Integer)globalMap.get("tOracleBulkExec_1_NB_LINE_INSERTED"))));  

But I get :

NB_LINE_INSERTED: null

Does anyone have an idea what's wrong? Thanks!

Labels (4)
1 Solution

Accepted Solutions
Jesperrekuh
Specialist
Specialist

NB LINE INSERTED. works with a row-counter , therefore when using a script it doesn't loop no iterator is increased... and inevitable NULL

They should implement SQL_MESSAGE which returns the response message by the server.
But they didn't

View solution in original post

4 Replies
Jesperrekuh
Specialist
Specialist

NB LINE INSERTED. works with a row-counter , therefore when using a script it doesn't loop no iterator is increased... and inevitable NULL

They should implement SQL_MESSAGE which returns the response message by the server.
But they didn't
TRF
Champion II
Champion II

What if you connect the tJavaFlex with a OnSubjobOk trigger?
BS0612
Contributor II
Contributor II
Author

Thanks, for the explaination.
What I don't understand is: Why is the global variable in the description of tOracleBulkExec offered, when this doesn't work?!

brama
Contributor III
Contributor III

Hi,

NB_LINE_INSERTED will work, but this has to be used post insertion to DB is completed. Check whether you are trying to print the value before it is set. Use OnComponent OK or OnSubJob ok, then print it, this will work.

 

Thanks,

Ramachandran B