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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tGPGDecrypt - How to capture non-zero return status and fail the job

Hi,
I'm pretty new to Talend (this is my first week of actually doing something Smiley Happy). I'm trying to migrate a job into Talend (TOS 6.1 jobserver on linux) which reads *.gz.gpg files, decrypts, gunzips and writes out after transform. So I figured out from this Forum topics how to list files, iterate, decrypt, gunzip, ignore already processed files and update processed file list - thanks for that.

All works perfectly in an ideal world scenario. But I'm now stuck at error handling - corrupt gpg, incomplete .gz file etc.
tGPGDecrypt does not fail when processing a corrupt gpg file. But job prints out error message in the console (see below). tGPGDecrypt_1_ERROR_MESSAGE has only null populated in it. 

How do I capture this return status and do something based on it?

[color=#ff6666][INFO ]: talend_etl.gpg_decrypt_0_1.gpg_decrypt - TalendJob: 'gpg_decrypt' - Done. gpg: no valid OpenPGP data found. gpg: decrypt_message failed: Unknown system error[/color]



Thanks
Vishnu

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi,
Have you tried to capture the Java excpetion, warning or die message by using tLogCatcher component in your work flow?
Best regards
Sabrina