Assign Processes and Users: Can not assign

Hello UiPath Community,

recently converted a project form Windows Legacy to Windows.

After successful convetion I started testing each workflow.

Run in a strange situation where the automation cannot assign to a String variable.
If i write the same expression to imediate panel, it works without any problem.


Thanks for the reply, Zoltan

Hi @Zoltan,

Please delete your double quotes and replace again.

The appearance of the double quotes seems to have changed.


Hi @omer.ozturk, thanks for the hint but that did not resolve it.
I also tried with System.String.Empty instead of "", but it won’t work still the same error.

Assign Processes and Users: Can not assign 'System.Security.Principal.WindowsIdentity.GetCurrent().Name.Replace(System.Environment.UserDomainName+“\”, "")' to 'CurrentUser'.

here we do see non " quotes

Just correct it to "

Hello @ppr, thanks for pointing it out, I did not see that that inverted quotes.

I replaced

System.Security.Principal.WindowsIdentity.GetCurrent().Name.Replace(System.Environment.UserDomainName+"\", "")

Now it works.

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