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

Community site session details

Session Id :
Power Apps - Error Handling
Answered

SQL server connection lost

(1) ShareShare
ReportReport
Posted on by 4
Hi all, 
I have multiple canvas apps in a managed solution connecting through a connection reference to an Azure SQL server database. Last couple of weeks I lost the connection to the database in multiple apps on different occasions.
 
Situation:
2 different solutions with canvas apps connection through a connection reference.
2 different connections to the same database server to two different databases with different SQL server users.
 
The message (Error) I get when I open the app is:

Error when trying to retrieve data from the network: Error from token exchange: The connection(europe-002...) is not found. Please create new connection and change your application to use the new connection.

The big question is: why did it lose the connection? Nothing has changed. Is Microsoft doing this?
 
Thanks
I have the same question (0)
  • Sam_Fawzi Profile Picture
    744 Super User 2025 Season 2 on at
    SQL server connection lost
     
    Try the below steps to fix the issue:
     
    1.  Check Connection References
    Start by confirming that your app is still linked to a valid connection reference.
    Navigate to Power Apps → Solutions → Your Managed Solution → Connection References.
    Make sure the reference is pointing to an active SQL connection. If it looks broken or missing, that’s likely the culprit.

    2. Recreate the Connection
    If the connection reference is broken, you’ll need to create a fresh one.
    Go to your environment and create a new SQL connection.
    Once done, update the connection reference in your solution to use this new connection.

    3. Verify Authentication
    Authentication issues can sneak in, especially if you’re using Azure AD.
    Double-check that the SQL user account still has the right permissions.
    Review any MFA (Multi-Factor Authentication) or Conditional Access policies—these can block token refresh and break connections.

    4. Check Environment Settings
    Finally, make sure your environment and connection are in sync.
    Confirm that the environment region matches the connection region (e.g., europe-002). A mismatch here can cause unexpected errors.
     
    hope that above will help with your troubleshooting. 
  • Verified answer
    wolenberg_ Profile Picture
    1,013 Moderator on at
    SQL server connection lost
    Hello @TG-03120822-0,

    Sometimes SQL connections in Power Apps just “drop” even if you didn’t change anything usually because the token behind the connection expired or Microsoft refreshed something on the backend. The fix is to recreate the SQL connection and re‑bind it to your connection reference. If you want to avoid this happening often, check that your SQL users are valid and consider using environment variables to manage connection references more reliably.

     

    In short: it’s not you, it’s the connector. Recreate the connection and you’ll be back up and running.

     

    If this helped or could help others in the community, feel free to give it a like or a kudo — it helps surface useful answers for everyone!

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 803 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 314 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 253 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics