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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SQL Server Connection ...
Power Apps
Answered

SQL Server Connection Failure: Failed to retrieve appDataSourceConfig

(0) ShareShare
ReportReport
Posted on by 44

Hey experts hopefully you can help me with this one it's a doozy.

 

So I have 3 environments Test->QA->Prod. In the test environment I have developed an app in an unmanaged solution and am importing it into QA as an unmanaged solution.

 

I have the SQL Server connector setup inside the solution so when I move it into the QA environment I get to choose the QA SQL connection. All of the flows that were in the solution successfully pick up the new connection; however, the tables and flows all have errors inside the actual PowerApp. Meaning to fix the issue I have to manually remove the flows and SQL connections and re-add them to have the connections work correctly. The error message that appears when I try to refresh a table is "Failed to retrieve appDataSourceConfig"

 

There are some other similar tickets out there that don't have a solution.

Here they just gave up and re-added/re-created the connection: SQL Server and Azure Blob storage connector receiving the error "This app needs access to this connection." 

 

@nihar had basically the same question here and no one answered: Canvas app and SQL connection reference 

 

@ANB  had what looked like a solution here but following these steps I still get the above mentioned error: Managing SQL Connector DB when deploying Solutions across different env. 

 

Is there a solution to this problem or perhaps different steps that I should be doing to not receive this error?

Categories:
I have the same question (0)
  • Verified answer
    CScarterlowe Profile Picture
    44 on at

    After scouring old forum posts I have finally found something that solved the issue. Doing these steps in the dev environment before importing it into QA and Prod:

    From @MattStannett and this post: https://powerusers.microsoft.com/t5/Building-Power-Apps/Unable-to-add-SQL-Server-connection-to-imported-app-inside-a/td-p/719916

     

    There is a possibility that you forgot to save the app after you re-added the connections last time. Hence the old connections are still there in the backend and that prompts the message.

    Therefore, could you please follow these steps and let me know the result?

    1. Go to edit mode of the app and delete the SQL Server connections
    2. Save and Publish the app
    3. Go back to Power Apps portal and refresh the page
    4. Go to edit mode of the app and add the connections again
    5. Save and Publish the app

     

    Thanks again for your time and cooperation.

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

Forum hierarchy changes are complete!

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard