Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
gurn
Contributor III
Contributor III

Executing snowflake stored proc and catching errors...

Hi

I have a job that is calling a Javascript stored procedure in Snowflake using a tDBRow component within my Talend flow.

The issue I have is that I'm forcing a failure of the SP which is correctly catching and returning the error if I run from the Snowflake UI. However, my tDBRow thinks the SP completes ok and so just continues through the SubJob OK rather than being caught by the On Component Error path.

Any one have any ideas how to ensure I can capture the flow correctly?

Thanks

Labels (5)
1 Solution

Accepted Solutions
gurn
Contributor III
Contributor III
Author

Solved - I realised I'd not used the throw routine in my try-catch-throw.

 

throw raises an exception which is then caught by Talend as expected.

View solution in original post

3 Replies
anselmopeixoto
Partner - Creator III
Partner - Creator III

Hi @Dave Gurney​ 

 

Have you enabled the "Die on error" option of tDBRow component?

gurn
Contributor III
Contributor III
Author

Solved - I realised I'd not used the throw routine in my try-catch-throw.

 

throw raises an exception which is then caught by Talend as expected.

Anonymous
Not applicable

Hello,

Thanks for letting us know you've resolved this issue by yourself.

Best regards

Sabrina