Invoke Code - code writen in C# - trying to convert a dictionary to datatable

Invoke Code is strictly for VB.NET if your project is set to VB.NET. C# support got in a while ago but then was removed so I assume you’re using an older version.

In any case, you can in fact use C# code if your entire project is set to C# (and things like the code you write in Assign and Invoke Method activities will use C# syntax), however, the error you’re getting is a generic “Something went wrong inside this code snippet”, that is to say, you won’t get the full exception trace.

My only suggestions would be to double check that the name of the variables used as argument are the correct ones, and then double check your code.

1 Like