Invoke code: Exception has been thrown by the target of an invocation using invoke code

Hi @zaid.ahmad ,

Could you we get more details of the Code Snippet used in Invoke Code Activity ?

Also make sure you are encapsulating the Code within a Try Catch and use a Write Line or Log the exception message or direct the exception to an out argument such that we can handle the Exception in a better way.

Based on the Exception message we can understand the issue being faced.