Snowflake stored procedure called from ADF

%3CLINGO-SUB%20id%3D%22lingo-sub-2650643%22%20slang%3D%22en-US%22%3ESnowflake%20stored%20procedure%20called%20from%20ADF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2650643%22%20slang%3D%22en-US%22%3EI%20am%20trying%20to%20call%20Snowflake%20stored%20procedure%20from%20ADF%20(lookup%20activity)that%20inserts%20the%20log%20count%20of%20all%20tables%20once%20it%20gets%20extracted%20from%20source%2Floads%20into%20snowflake.%20Stored%20procedure%20throws%20error%20when%20it%20is%20not%20able%20to%20insert%20log%20of%20a%20particular%20table%20in%20the%20loop%20but%20overall%20when%20it%20is%20done%20with%20process%20(log%20counts%20for%20all)%20it%20shows%20only%20success%20in%20the%20look%20up%20activity%20even%20when%20it%20is%20failed%20for%20some%20tables.%20How%20can%20I%20fail%20the%20pipeline%20in%20this%20case%3F%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20try%2C%20I%20am%20just%20extracting%20the%20table%20details%20and%20load%20count%20and%20in%20catch%20I%20am%20executing%20below%20%3A%3CBR%20%2F%3E%3CBR%20%2F%3Ecatch%20(err)%20%7B%20throw%20Failed%20to%20insert%20data%20change%20to%20log%2C%20error%3A%20%24%7Berr%7D%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2650643%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EADF%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Visitor
I am trying to call Snowflake stored procedure from ADF (lookup activity)that inserts the log count of all tables once it gets extracted from source/loads into snowflake. Stored procedure throws error when it is not able to insert log of a particular table in the loop but overall when it is done with process (log counts for all) it shows only success in the look up activity even when it is failed for some tables. How can I fail the pipeline in this case?

In try, I am just extracting the table details and load count and in catch I am executing below :

catch (err) { throw Failed to insert data change to log, error: ${err}
0 Replies