Cannot convert 'Type' to 'UiPath.Core.Generic'

I am aware this question has been asked before as well, but what exactly is the cause of this issue? All we did was convert the project from Windows - legacy to Windows .net.

The value in question has to be ‘UiPath.Core.Generic’ (or an alternative that is flexible) because the asset types may change over the course of the iteration i.e. one asset might be text, next one might be a credential etc.

Any help or recommendations would be appreciated.

Thank you!

Hi,

How about using object type instead of GenericValue type?
If you need to convert it to GenericValue, the following will help you.

genericValueVar = New UiPath.Core.GenericValue(objVar) 

Regards,

Hi Yoichi,

Thanks for the response, the bot has managed to go past the error displayed in the screenshot. However, I assumed that a generic type would accept any variable - why does this occur in the windows version and not windows legacy?

Hi,

There are some incompatibilities between Windows-Legacy and Windows project. This may be one of them. FYI, other some incompatibilities are described as the following document.

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.