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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Get error signal from the component without Die On Error

Hi,
I made a job that obtains a list of URLs and fetches html pages with tHttpRequest component one by one. If there are some errors like URL being unreachable or request timeout I'd like to write them into a log file without stopping the job. 
I tried to use tLogCatcher/tWarn/tDie combination (tLogCatcher writing everyting into a log file) as well as unchecking "Die on Error" checkbox in tHttpRequest. But when I try to feed tHttpRequest some fake URLs it writes red "404" in the console and still triggers OnComponentOk arrow which activates tWarn component that passes "Ok" message to tLogCatcher, so the log file will always say there weren't any errors. 
The only way to trigger OnComponentError arrow which would allow to write "Error" message into the log file seems to be checking "Die on Error" option in tHttpRequest but that doesn't suit me because I want the list of URLs to be processed to the end no matter what errors were encountered in the middle of it.
So, the question is, how can I catch errors in tHttpRequest and pass them to log file somehow without allowing the job to crash on error?
Labels (2)
4 Replies
Anonymous
Not applicable
Author

Hi,
Could you please post your current job design screenshots on forum which will be helpful for us to address your issue?
Best regards
Sabrina
Anonymous
Not applicable
Author

I can only show fragment of my job but here it is.

0683p000009MDbz.png  0683p000009MDc4.png 
The properties of LoadContentPage:

0683p000009MDc9.png
I don't want LoadContentPage to die on error but I still have to write messages into a log file if anything goes wrong. How can I notify tLogCatcher that LoadContentPage couldn't load some pages?
Can I suppress exceptions in ParseContentPage and notify tLogCatcher somehow that there were some errors as well?
Anonymous
Not applicable
Author

Any updates here? Having same issue: I'm using tSalesforceOutput and would like it to NOT die on error, but instead log all the incoming errors to a log file.

 

Thanks!

Anonymous
Not applicable
Author

Hello @Danomyte66 ,

Here is a global variable from tSalesforceOutput component  ((String)globalMap.get("tSalesforceOutput_1_ERROR_MESSAGE"))  and the error message generated by the component when an error occurs. This is an After variable and it returns a string.

Best regards

Sabrina