What’s actually happening (accurate version)
In solution-aware flows (classic designer):
Environment variables are not just in definition. parameters
They are also referenced in:
connectionReferences
definition. parameters → metadata.schemaName
solution component dependency layer (Dataverse)
So even if you:
remove them from actions
delete them from parameters
Power Automate can STILL detect dependency → and block activation
Option 1 (Clean rebuild — actually works)
Create a brand new flow (do NOT copy existing)
Build it manually from scratch
Add actions fresh (especially SharePoint connectors)
Enter hardcoded values directly
Ensure:
No dynamic content from environment variables
Save → Turn ON
Then delete the old flow from the solution
Option 2 Edit Solution Package (advance)
Export Solution as Unmanaged
Unzip
Open /Workflows/<flowname>.json
Locate "parameters": {
Delete ALL environment variable blocks, e.g.:
"SharePoint_Herstelplannen (myCompany_SharePoint_Herstelplannen)": { ... }
Keep only:
"$connections"
"$authentication"
Save → zip → re-import solution (overwrite)