Invoke Code Activity - argument error - List(Of Tuple(Of String, Integer, Integer, Integer, Boolean)())

Hi,

I have troubles to use the type
List(Of Tuple(Of String, Integer, Integer, Integer, Boolean)())
as an In/Out argument for the Invoke Code activity.
I get a validation error. How can i solve that?

19.1.0+Branch.master.Sha.3db2bfe8751ed76c2c21f7ee16f53ff69a3e3b75

The workflow has validation errors. Review and resolve them first.

No compiled code to run
error BC30037: Character is not valid. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘mscorlib’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘Version’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘Culture’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘PublicKeyToken’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘mscorlib’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘Version’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘Culture’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘PublicKeyToken’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘mscorlib’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘Version’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘Culture’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘PublicKeyToken’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘mscorlib’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘Version’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘Culture’. At line 0
error BC30529: All parameters must be explicitly typed if any of them are explicitly typed. At line 0
error BC30211: Option Strict On requires that all method parameters have an ‘As’ clause. At line 0
error BC30237: Parameter already declared with name ‘PublicKeyToken’. At line 0

Can you please paste the code you have in the Invoke code?

UiPath have the specific functionality of Option Strict On , so that we have to use Ctype conversions to make the code UiPath compatible.

Hi,

The Invoke Code Activity is empty. It’s alone the using of the argument of that type, that cause the error.

When you look at the logs:

error BC30237: Parameter already declared with name ‘mscorlib’. At line 0
error BC30237: Parameter already declared with name ‘Version’. At line 0
error BC30237: Parameter already declared with name ‘Culture’. At line 0
error BC30237: Parameter already declared with name ‘PublicKeyToken’. At line 0

This looks like an wrong or duplicated, or something like that, Dll reference, that is “dynamically” loaded for the compilation of the Activity.
I can reproduce this error on two different machines with 18.4 and 19.3
As you can see on the screenshot. It’s the same problem with an array of arrays of tuple

Here is an other example with a simpler type
List(Of String)()
An Array of List of String
The Invoke Code Activity contains no code.
This type also cause an error like shown in the screenshot, but this time it’s an run-time error. It’s not at design time, when the Activity is compiled, like in my first post.