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 / "Bad Data Source" erro...
Power Apps
Unanswered

"Bad Data Source" error after deploying onto other environment

(1) ShareShare
ReportReport
Posted on by 10

Hi! Having troubles after deploying canvas app  (with Azure SQL connector data sources) onto different environment (with different Azure SQL connector having cloned database).

Deployed app "doesn't see" data sources.

On refresing any data source having an error: 

{

   status: 400,

   message: Bad Data Source\r\n inner exception. Not a valid data source,

   ...

}

Removing-and-adding the same data sources solves a problem.

Additionaly founded out that on importing app, all its advanced settings are reset to defaults...

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    on at

    Hi @ipogoretsky ,

     

    See in below documentation:

    https://docs.microsoft.com/en-us/power-platform/admin/environment-and-tenant-migration

    If an app depends on a connection (such as a SQL connection w/ credentials), we do not currently support exporting the connection or credentials as a part of the package.

    If you have an app that relies on a shared connection (like SQL), your only current option is to manually re-create that connection with the appropriate credentials in your target environment and select that connection when you import the package.

     

    Regards,

    Mona

     

     

  • ipogoretsky Profile Picture
    10 on at

    I know all steps of deploying procedure. Many times did it. The propblem I described appeared a couple days ago. I choose connector from the list and after get an error. All credencials are ok. Seems to be a bug of powerapp deployment process 

  • ipogoretsky Profile Picture
    10 on at

    Founded out that issue was caused by app settings flag "Enable Enhanced Micosoft SQL Connector". 

    Turning it off solved a problem.

  • Pasark Profile Picture
    20 on at
    I had the same issue. After exporting the app, recreating the SQL Connector, importing the app, I couldn't get the data from SQL. Disabling Enable Enhanced Microsoft SQL Connector solved the issue.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard