Exception has been thrown by target of invocation? in invoke code

How to Solve this issue? Plese help

It means that there’s some error in your code which is in invoke code activity. The problem with this activity is that it doesn’t tell us at which line the error occured.

You’ve to verify your code. If you still can’t find error, debug your code in Visual Studio or any online .net compilers and find out where’s the mistake.

Or else there’s a way to log messages inside invoke code activity. You can try this too. See this post:

1 Like

as mentioned by @Surya_Narayana_Korivipadu it is depending to your code fragment
you can do following

  • share the code with us
    Or
  • integrate also try catch within the invoced code fragment and get back details on exceptions
1 Like

Thank you