# NotAllowedConnectionReference in Power Automate: cause and fix

Source page: https://ipaaserrors.com/power-automate/notallowedconnectionreference
Platform: Power Automate · Power Apps calling a flow (solutions) · Code NotAllowedConnectionReference
Checked against vendor docs: 2026-11-27

NotAllowedConnectionReference means the app's flow metadata expects a specific connection reference, such as a SQL connection, that the app does not provide. Re-add the flows in the app, then remove unmanaged layers and re-import the solution.

## Error text

```
NotAllowedConnectionReference
Connection reference '<connection name>' was not given by invoker.
```

## Likely causes

- The app's flow metadata expects a specific connection reference, such as a SQL connection.

## How to fix it

1. In the source environment, remove the flows from the app, add them again, then save and publish the app.
2. In the target environment, remove the unmanaged solution layers from the app and the flow.
3. Export the solution again and import it into the target environment.

## Sources

- [Troubleshoot Power Apps flow integration issues](https://learn.microsoft.com/en-us/troubleshoot/power-platform/power-apps/connections/best-practices-when-updating-a-flow)

From iPaaS Errors (https://ipaaserrors.com), part of iPaaS Group. When citing, link to https://ipaaserrors.com/power-automate/notallowedconnectionreference and the vendor documentation above.
