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 / PowerApps studio is te...
Power Apps
Answered

PowerApps studio is telling me to add back defunct connections.

(0) ShareShare
ReportReport
Posted on by 894

I am maintaining a Canvas App using SQL. A couple of the SQL connections are no longer required - as the computer they were hosted on no longer exists.

Having deleted the Connections using Data > Connections, it is now telling me I have to add them back.

 

 

add it back.png

Neither will it let me do an export:

could not find connection.png

How do I solve this?

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @stapes Goto Data->Connections and remove the SQL connection that are not needed anymore. Hope that helps.

  • stapes Profile Picture
    894 on at

    I have already done that bit. The issue arises after that.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @stapes 

    If those are no longer in use, then click on the don't allow option to then edit the app.  Remove the datasources that reference that connection in the app and save it.

    Unfortunately, they also get stuck some time.  Even though they are not listed in the app nor do they exist any longer, the app still is trying to find it. 

    The only way that I have been able to remove them in scenarios like that is to edit the underlying MSAPP JSON files.

     

     

  • stapes Profile Picture
    894 on at

    Thanks. Editing the json is entirely to risky  - - and never works when you import it back in. Another PowerApps bug. It would help if the error dialog in PowerApps Studio actually told you which connections were missing. 

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @stapes 

    Well, it is kind of telling you which connections are missing...the ones in the pop up.

    As for editing the JSON, the trick now is to making sure you unpack it properly with the Language Tool.

    Then you can easily edit the yaml files and then pack it again.  There is no need to export and import, just save as an MSAPP and then unpack, make changes, pack and then open in PowerApps studio.

  • stapes Profile Picture
    894 on at

    Thank you! I downloaded the Language Tool. Had to make a few alterations to get it to build. Then used it to unpack my msapp file. Was able to see the source code arranged in a nice orderly way, and found the missing connection, in Connections/Connection.json

    This had one dependency, which was one of my Flows. I deleted this flow from the App, using the PowerApps studio, and bingo, problem solved.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @stapes 

    Excellent!!  Plus 1 for the Language Tool!!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard