Skip to content

Commit b8c8b4a

Browse files
authored
Merge pull request #8158 from MicrosoftDocs/iomavrid-access-database-and-encrypted-text-articles
AB#3755: Iomavrid access database and encrypted text articles
2 parents 1d2cbd2 + eb94112 commit b8c8b4a

File tree

6 files changed

+58
-3
lines changed

6 files changed

+58
-3
lines changed

support/power-platform/power-automate/desktop-flows/cannot-connect-access-database-engine-ole-db.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Cannot establish connection to Access Database Engine OLE DB
33
description: Provides a resolution for the issue that you can't establish a connection with database actions to Access Database Engine OLE DB in Power Automate for desktop.
4-
ms.reviewer: adija, pefelesk
5-
ms.date: 03/19/2024
4+
ms.reviewer: adija, pefelesk, iomavrid
5+
ms.date: 02/18/2025
66
ms.custom: sap:Desktop flows\Power Automate for desktop errors
77
---
88
# Can't establish a connection to Access Database Engine OLE DB
@@ -26,7 +26,7 @@ Consider the following scenario in Microsoft Power Automate for desktop:
2626

2727
This error message occurs because the appropriate 64-bit driver isn't installed on your machine. Kindly note that Power Automate for desktop is based on 64-bit architecture and thus is only compatible to 64-bit database drivers.
2828

29-
## Resolution
29+
## Workaround
3030

3131
Verify that you have 64-bit Access Database driver installed on your machine by going to ODBC Data Source Administrator (64-bit) application on windows and then the **Drivers** tab. If you don't see "Microsoft Access Driver" in the list, you need to download and install the 64-bit version from [Microsoft Access Database Engine 2016 Redistributable](https://www.microsoft.com/download/details.aspx?id=54920).
3232

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
title: Expression Couldn't be Evaluated Error When Using Encrypted Text
3+
description: Provides a resolution for the Expression couldn't be evaluated error when using direct encrypted text in Power Automate for desktop.
4+
ms.reviewer: iomavrid
5+
author: yiannismavridis
6+
ms.author: iomavrid
7+
ms.date: 02/18/2025
8+
ms.custom: sap:Desktop flows\Power Automate for desktop errors
9+
---
10+
# "Expression couldn't be evaluated" error when using encrypted text
11+
12+
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.
13+
14+
_Applies to:_   Power Automate
15+
16+
## Symptoms
17+
18+
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:
19+
20+
> Failed with error: Expression couldn't be evaluated
21+
22+
For example,
23+
24+
- The **Direct password input** option:
25+
26+
:::image type="content" source="media/error-expression-could-not-be-evaluated/direct-password-input.png" alt-text="Screenshot that shows the Direct password input option in a desktop flow action.":::
27+
28+
- The **Direct encrypted text input** option:
29+
30+
:::image type="content" source="media/error-expression-could-not-be-evaluated/direct-encrypted-text-input.png" alt-text="Screenshot that shows the Direct encrypted text input option in a desktop flow action.":::
31+
32+
## Cause
33+
34+
The error occurs because direct inputs are encrypted using the local machine's [Data Protection API (DPAPI)](/dotnet/standard/security/how-to-use-data-protection) and can't be decrypted when the flow is run on another machine.
35+
36+
This limitation is highlighted when you hover over the info icon if any of the direct input options is selected.
37+
38+
:::image type="content" source="media/error-expression-could-not-be-evaluated/encrypted-tooltip.png" alt-text="Screenshot that shows the tooltip that provides additional information about the limitations of using direct encrypted text or password input.":::
39+
40+
## Resolution
41+
42+
To run the flow on a different machine, modify the flow to use [sensitive variables](/power-automate/desktop-flows/manage-variables#sensitive-variables/power-automate/desktop-flows/manage-variables#sensitive-variables).
43+
44+
1. Open the desktop flow in Power Automate for desktop.
45+
1. Locate the action that uses direct password input or direct encrypted text input.
46+
1. Replace the direct input with a sensitive variable:
47+
1. 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.
48+
1. Choose a variable that's marked as sensitive.
49+
1. Save the modified flow and test it on a different machine to ensure that the error is resolved.
50+
51+
## More information
52+
53+
[Use passwords in certain actions within desktop workflows](/power-automate/desktop-flows/how-to/use-passwords)
32.8 KB
Loading
38 KB
Loading
37.2 KB
Loading

support/power-platform/power-automate/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@
110110
href: desktop-flows/environment-load-fails-insufficient-permissions-after-2-46.md
111111
- name: Error communicating with the emulator using Micro Focus Reflection Desktop
112112
href: desktop-flows/error-communicating-with-the-emulator.md
113+
- name: Expression couldn't be evaluated error when using direct encrypted text
114+
href: desktop-flows/error-expression-could-not-be-evaluated.md
113115
- name: Errors when running desktop flows including Excel actions
114116
href: desktop-flows/troubleshoot-excel-errors.md
115117
- name: Errors when running attended or unattended desktop flows

0 commit comments

Comments
 (0)