I have an Invoke Code activity inside a Retry Scope (using the default number of retries and interval) but when below error was encountered, it was never retried. Has anyone encountered this issue before?
We have increased the query timeout but the issue is still being encountered but not all the time since the process is scheduled every 15 minutes. On its next run, the process would execute it successfully .
Exception
SnowflakeDbException Error Message: Error: Snowflake Internal Error: Unable to connect. One or more errors occurred. (A task was canceled.) SqlState: 08006, VendorCode: 270001, QueryId: , Source: Snowflake.Data
Did you check in Debug (Step into) whether the Invoke Code is actually throwing any error? If the code itself executes without any error, then Invoke Code would not throw anything.
We are unable to replicate the exact exception. Rather, we used an incorrect credential in the connection string, and in debug mode it didn’t retry and just exited the retry scope. Is there something about ‘fatal’ errors that Retry Scope is not retrying those by default?
Can you show what you are doing inside invoke code…if you are using try catch inside invoke and in catch block if you are not throwing or rethrowing the error then it would not be possible to get caught as the catch inside invoke code already handled it
See if your invoke code is throwing error or not
In some cases - code will be executed successfully without assigning value to output arguments due to code design. Example - Try catch within the code / value assigned to null etc
In these cases - see the output value and if it is not expected - throw exception outside the invoke code.