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 / [BUG] "Bad data source...
Power Apps
Unanswered

[BUG] "Bad data source - not a valid data source" error after moving app from one environment to another

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am getting the above error when moving an app from one environment to another.

 

My app is a canvas app with one connector, to SQL Server, using SQL authentication. 

 

I created this app in my development environment, and once it was ready for testing I exported it and then imported it in to our test environment, where the SQL Server connector already existed. On import I said create new application (although it also happens when updating) and then selected the correct SQL Server connector as part of the import process.

 

When I open the app in the editor I get two runtime errors, as in the title of this post:

 

The requested operation is invalid.
Server Response: Bad Data Source.
 inner exception: Not a valid data source.
clientRequestId: .....

 

If I remove the data source and re-add it everything works fine, but I shouldn't have to do that. This same issue will arise when I move from test -> production, and clearly you should not be editing apps when they are promoted to production - this invalidates every ALM principle ever.

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Can someone please take a look at this? It's hugely frustrating

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is still happening. I hate PowerApps.

     

    It looks like disabling the advanced sql connector feature fixes things, so way to go. Great enhancement there. Well tested.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard