web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps keeps reque...
Power Apps
Suggested Answer

Power Apps keeps requesting SQL connector consent after changing SQL connection

(1) ShareShare
ReportReport
Posted on by 5
Hello Support Team,
 
I am using a Power Apps canvas app that calls Power Automate flows with SQL Premium connectors.
 
Recently, I changed one of the SQL connections used in the flows. After that, when opening the Power Apps application, a consent dialog appears saying that I do not have permission to one of the SQL connections. I am not able to click the "Allow" button for that connection.
 
However, if I click "Don't allow", the app still opens successfully and I am able to use the app normally. The app can still call Power Automate and the flows can still access SQL without any issues.
 
This behavior is confusing because:
- I receive a permission/consent error for an SQL connection
- I cannot grant consent
- But the app and flows still work as expected after clicking "Don't allow"
 
Could you please help me understand:
- Why this consent dialog keeps appearing?
- Whether there is an orphaned or unused SQL connection or connection reference still attached to the app or flows?
- How I can remove or fix the incorrect SQL connection so the app no longer asks for this consent?
 
Thank you very much for your support.
 
Best regards, 
[Your Name]
Screenshot 2026-01-30 093442.png
Screenshot 2026-01-30 093345.png
Screenshot 2026-01-30 093452.png
Categories:
I have the same question (0)
  • Suggested answer
    MS.Ragavendar Profile Picture
    7,431 Super User 2026 Season 1 on at
     
    Queries
    • Are you the app owner or co-owner of this PowerApps?
    • Is the Application is inside the solution?
    Updating the Flow Context
    • Open the app → Data pane → Power Automate
    • Remove any flows you no longer use from the app.
    • Save and Publish the app (important—publishing updates what the platform thinks your app needs). If old references still persist, a hard publish is required. 
    Updating the SQL Context
    • Data pane → Connections
    • Remove any SQL connections you don’t actually use in the app.
    • Re‑add only the intended SQL connection (if the app itself uses SQL; if all SQL calls are via flows, the app might not need a direct SQL connection at all).
    • Save & Publish again.
    But the app and flows still work as expected after clicking "Don't allow"
    This is because flows are most likely configured to run with the owner’s (or a fixed) connection. In Run‑only users settings for a flow, each connector can be set to Use this connection (owner/service account) instead of Provided by run‑only user.
     
    When that’s the case, end users do not need their own SQL connection to run the flow. That’s why the app fully works even if you press Don’t allow.
     
    🏷️ Please tag me @MS.Ragavendar if you still have any queries related to the solution or issue persists.
    Please click Accept as solution if my post helped you solve your issue and help others who will face the similar issue in future.
    ❤️ Please consider giving it a Like, If the approach was useful in other ways.
  • Suggested answer
    VASANTH KUMAR BALMADI Profile Picture
    322 on at

    This is a known Power Platform behavior and what you’re seeing is almost always caused by an orphaned SQL connection reference, not an actual runtime permission issue.

    That’s why:

    • the consent dialog appears

    • you cannot click Allow

    • clicking Don’t allow still lets the app work normally

    The app is not using that SQL connection anymore, but Power Apps still thinks it is.

    Why this happens

    When you changed the SQL connection inside the flow, Power Platform created a new connection reference, but the old one was never fully removed from the app/solution metadata.

    So you end up with:

    • ✅ Flow using new SQL connection

    • ❌ App still holding reference to old SQL connection

    • ❌ That old connection no longer exists or you don’t have permission

    • ✅ Runtime works because the flow runs under its own connection

    At app startup, Power Apps tries to validate all referenced connections, including unused ones — and that’s what triggers the consent dialog.

    Why “Allow” is disabled

    The Allow button is disabled because:

    • the SQL connection belongs to another user or

    • the connection was deleted or

    • the environment no longer has access to that connection

    Since you can’t grant consent to a connection you don’t own, Power Apps blocks the button.

    Why clicking “Don’t allow” still works

    Canvas apps do not execute SQL directly in this scenario.

    The actual execution path is:

    Power Apps
       ↓
    Power Automate flow
       ↓
    SQL connector (inside flow)
    

    The app itself never touches SQL.

    So even if you deny the connection at app load:

    • the flow still runs

    • the SQL connector inside the flow still works

    • the app behaves normally

    That’s expected.

    How to confirm this is the issue

    Open your app in Power Apps Studio:

    Data → Connections

    You will see:

    • an SQL connection listed

    • even though your app formulas don’t reference SQL at all

    That connection exists only because of old flow metadata.

    Correct way to fix it

    ✅ Step 1 — Check solution connection references

    If your app is in a solution:

    1. Open Solutions

    2. Open the solution containing:

      • the app

      • the flows

    3. Go to Connection References

    You will almost certainly see:

    • SQL Connection Reference (OLD)

    • SQL Connection Reference (NEW)

    The old one is the problem.

    ✅ Step 2 — Update flows to the correct reference

    For each flow:

    • Open the flow

    • Go to Edit

    • Click the SQL action

    • Re-select the correct connection reference

    • Save the flow

    Even if it already looks correct — reselect and save.

    This forces Power Platform to detach the old reference.

    ✅ Step 3 — Remove the orphaned reference

    After all flows are saved:

    • Go back to Connection References

    • Delete the old SQL reference

    If delete is disabled:

    • it means some flow still points to it

    • open that flow and rebind again

    ✅ Step 4 — Remove unused app connections

    Back in Power Apps Studio:

    • Data → Connections

    • Remove the SQL connection (if present)

    • Save and publish the app

    After this

    • Consent dialog disappears

    • App opens normally

    • No “Allow / Don’t allow” prompt

    • SQL access continues working through flows

    Summary

    • ❌ This is not a real permission problem

    • ❌ SQL is not actually blocked

    • ✅ It’s an orphaned connection reference

    • ✅ Happens commonly after changing SQL connections

    • ✅ Fix is cleaning connection references at solution level

    Key takeaway

    Canvas apps validate every referenced connection at startup — even unused ones.

    If a stale SQL reference exists anywhere in the solution, the consent dialog will continue to appear.

    Once you remove that orphaned connection reference, the issue is permanently resolved.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard