"Exceptionless.Models.GenericArguments" cannot be converted to "String"


#1

Unable to resolve error message:
Value of type “Exceptionless.Models.GenericArguments” cannot be converted to “String”.

All my tablke variable types are genericarguments. I don’t know where the “string” is coming from.

thank you,


#2

Hi,

Try initializing the variable “Exceptionless.Models.GenericArguments” and then use the variable as u desire. I tried converting “Exceptionless.Models.GenericArguments” into string i works fine

#3

Sorry, I am new to programming and Uipath.
How do I initially “initialize” variable?

thank you,
Dario


#4
  • Create a variable in variables panel and in variable type browse for the variable type that u need and select.

  • For variable types like string, int, generic, Boolean there is no need to initialize but for collection types like list, arrays and other type like the one u r using “Exceptionless.Models.GenericArguments” need to be initialized to allocate memory .

  • To initialize a variable in uipath u need to do like this

1

As u can see i has allocated memory by creating a new instance of the variable in the default value text box in variables panel