Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
McDon
Contributor III
Contributor III

OnSubJobOk OR OnSubJobErr - must be one or the other - or must it?

I'm building a job and would like to report (tWarn) when the subJob finishes successfully or when it finishes with error.

My assumption (I'm new and apparently wrong) is that one or the other must execute. But neither message is presented.

My Job:

0695b00000KCcm2AAD.png

tWarn_5 and tWarn_6 and the connections leading up to them are the areas of focus.

0695b00000KCcoIAAT.png

0695b00000KCcnjAAD.png

Running the job is successful.

0695b00000KCcq9AAD.png

The tFileCopy is executing as it should in this situation.

Given tFileCopy executes successfully, I am expecting the OnSubJobOk connection to tWarn_6 to execute.

As a result I should get the message defined in tWarn_6.

As you can see from the output, I am not getting the tWarn_6 message which is defined as

"faux etl subjob completed OK"

Any insight would be apprecated.

Labels (2)
5 Replies
Anonymous
Not applicable

You should use a tLogCatcher component to capture the warn messages, print the messages on the console with tLogRow or log them to file or DB.

 

Regards

Shong

McDon
Contributor III
Contributor III
Author

Thank you,

I have added tLogRow to my tLogCatcher path and it works.

Can you educate me my some of my tWarn messages appear without tLogRow and some require it?

 

Here is a screenshot with tLogRow added to my tLogCatcher and the new output.

 

0695b00000KCd3nAAD.png

Anonymous
Not applicable

You are talking about the string starts with [warn]....babalala....?

McDon
Contributor III
Contributor III
Author

yes

Anonymous
Not applicable

These warn messages are thrown by Java API, not the customized warn messages defined on tWarn, just ignore them, it will not affect the job execution.