Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article helps you resolve the "Expression couldn't be evaluated" error that occurs when you run a desktop flow with an action that uses direct input.
Applies to: Power Automate
Symptoms
A desktop flow with an action that uses direct input generates the following error when it's run on a machine different than the one where the flow was created:
Failed with error: Expression couldn't be evaluated
For example,
The Direct password input option:
The Direct encrypted text input option:
Cause
The error occurs because direct inputs are encrypted using the local machine's Data Protection API (DPAPI) and can't be decrypted when the flow is run on another machine.
This limitation is highlighted when you hover over the info icon if any of the direct input options is selected.
Resolution
To run the flow on a different machine, modify the flow to use sensitive variables.
- Open the desktop flow in Power Automate for desktop.
- Locate the action that uses direct password input or direct encrypted text input.
- Replace the direct input with a sensitive variable:
- Select the Password input as variable or Input as text, variable or expression option to use a variable as a password input or text input.
- Choose a variable that's marked as sensitive.
- Save the modified flow and test it on a different machine to ensure that the error is resolved.