Invalid L-Value expression

Hi Team,

I am fetching asset value say an email id. Using Studio 2022.10
Get Asset activity. In value out assigning a string variable its showing below error

Hi Team,

I am fetching asset value say an email id. Using Studio 2022.10
Get Asset activity. In value out assigning a string variable its showing below error
Invalid L-value expression. Reference expressions cannot end with conversion

@Honda

just to check open advanced editor and then assign the string variable there…

cheers

Hey Honda,

The ‘Asset Name’ field has an autocomplete feature by default. To override this you need open the advanced editor and input the variable there.

cheers,

Hi @Honda

Can you check your folder and asset…

If possible can you share screenshot along with error message

Hi,

The error “Invalid L-value expression. Reference expressions cannot end with conversion” occurs when you’re assigning the output of the Get Asset activity directly to a variable and there is a type mismatch between the asset’s expected value and the variable type in UiPath Studio.

The Get Asset activity retrieves the value of an asset from Orchestrator as a generic object (Object) type.The Get Asset activity retrieves the value of an asset from Orchestrator as a generic object (Object) type.

Regards,
Gokul

Hello,

Hello,
Please check the asset value in Orchestrator,
It may be that the variable assignment does not match the data type of the activity output.

To obtain the value of an asset, 3 elements must be specified:

  • Folder
  • AssetName (from the orchestrator)
    -Out_AssetValue , in which we store the asset value, must be of the same type as that (AssetName) declared in ochestrator.

Check the type of asset declare
And check the data type of variable declare