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: 
Anonymous
Not applicable

how to catch tMSSqlInput connection exception

Hello,
I am trying to catch all exception or errors by using logCatcher component.
But when I have a database connection error. It didn't catch the exception.
May I know what the problem is and how to solve it?
Thanks!
0683p000009MDWs.png     0683p000009MDcd.png
Labels (2)
4 Replies
Anonymous
Not applicable
Author

Hi,
Have you tried to catch tMSSqlInput exception by the global variable 0683p000009MPcz.png(String)globalMap.get("tMSSqlInput_1_ERROR_MESSAGE"))?
Best regards
Sabrina
vapukov
Master II
Master II

good to check - what also wrong, because - it work
try to disable all components after tLog in line and test
also - DO NOT use main connection for tSendMail - use OnSubJobOk connection
You want send whole file, after catch all errors, but not 1000 emails if You have 1000 wrong records
0683p000009MDcn.png
Anonymous
Not applicable
Author

Thanks for all of your response!
I found out the problem. I tried to insert the error code into database. If I remove database input part, everything works back to normal. The email still can send out.
I can live with now. Thanks!
Anonymous
Not applicable
Author

Hi,
Great it has been fixed. Could you please mark this topic as resolved?
Best regards
Sabrina