Hello @Swapnil Sarkar
It seems like you are looking for a way to fetch the failed query ID from Snowflake when a script activity fails in Azure Data Factory.
One way to achieve this is by using Snowflake's query history feature. You can enable query history in Snowflake and then query the history table to retrieve the query ID of the failed query.
You can then use this query ID to debug the error. To enable query history in Snowflake, you can follow the steps mentioned in the Snowflake documentation.
Once query history is enabled, you can query the history table using the Snowflake connector in Azure Data Factory to retrieve the query ID.
I hope this helps