What is the Invalid L-value expression error and what does it have to do with the browse-for-file activity?

Hello all ,
I’m currently doing a rather simple robot that browses for a couple templates and then , after a bunch of modifications , sends a few emails , nothing too complicated…
The issue , however , is that , when I’m using the “browse for file” activity , in order to get the initial templates , I get this


error , which I didn’t find much documentation on , aside from a question about OCR , which is not my use case here , and which doesn’t happen with a log message nor other string fields , or if I use only the first variable of the two (which are both string variables by the way)…
So , yes , I probably could fix it by just using an assign to make a single text variable , but that wouldn’t explain the issue.

So my question is as follows : What is the condition for an invalid L-value expression , and what are the specifics of the output field of the browse for file activity that could make it behave so specifically ?

Thanks in advance for your help ,
Bastien

Hi,

Basically, we need to set single variable in the property because of OutArgument.

If you still have problem using single variable, can you try to set it in not designer panel but property panel?

Regards,

Okay , so , if I get it right , the selected file path isn’t the one we are browsing for the file but the resulting path after having browsed for the file we want ? And so , the Filter should be the field where we input which file we are looking for ?

Thank you in advance.

An invalid L-Value does mean that the value cannot be assigned as the target cannot receive the value.

eg: strtext = “abc” OK
strtext.ToUpper() = “abc” FAILING

toUpper is returning a value, but cannot recieve a value

Ahh , okay , thank you very much , I get it now !

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