Description:
I'm experiencing a strange issue with environment variables in a managed solution after migrating from a Dev environment to a Test environment.
Setup:
-
Power Automate Desktop v2.65.145.26040
-
Managed solution exported from Dev and imported into Test
-
Execution mode: Attended, triggered manually outside the editor
The problem:
When I run the desktop flow manually outside the editor in Dev environment or inside the PAD editor, it works correctly and retrieves the environment variable without issues.
However, when I run the same flow manually outside the editor (attended mode), it fails with the following error:
No environment variable was found with schema name "deb_EVTemplateRelatorioConsultaEcac" and ID "84273257-ad1c-f111-8341-7ced8db0fcbc"
Root cause investigation:
After checking, I noticed that the GUID in the error message (84273257-ad1c-f111-8341-7ced8db0fcbc) belongs to the environment variable in the Dev environment, not in Test. The variable exists in Test and has a value assigned, but with a different GUID.
This suggests the flow has the Dev GUID hardcoded in its definition, and only resolves correctly by schema name when running inside the editor session.
Questions:
-
Why does the PAD runtime resolve the environment variable correctly inside the editor but fail outside of it?
-
Is there a known issue with environment variable GUIDs being hardcoded in desktop flow definitions when exported as managed solutions?
-
What is the recommended approach to ensure environment variables are resolved by schema name (not by GUID) when running in attended mode outside the editor?
Any guidance would be appreciated. Thanks!

Report
All responses (
Answers (