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 / How to change the Powe...
Power Apps
Suggested Answer

How to change the Power Apps Databricks catalog name based upon the environment I deploy to

(0) ShareShare
ReportReport
Posted on by 28 Season of Giving Solutions 2025
I have a Power App that references several tables in Azure Databricks. The catalog name is "dev" for my dev and qa environments. I just deployed it to my STG environment and need a way to switch the catalog name from "dev" to "test".
Has anyone run into this issue and might you have a resolution. 
 
I have even exported the solution, updated the connection references from "dev.schema_name" to "test.schema_name" and when running with the live monitor it receives a 403 response and is still referencing "dev.schema_name".
 
Thank you!
I have the same question (0)
  • Soufyane Profile Picture
    14 on at
     
  • Suggested answer
    Soufyane Profile Picture
    14 on at
    The Problem
    The catalog name is hardcoded inside the app’s data source. Editing the ZIP doesn’t work.
    Try this instead : 
        1.    Create an Environment Variable (type: Text) in your solution, and set its value to match the catalog name of that environment.
        2.    In your Canvas App, remove the existing Databricks data source, re-add it, and when the catalog picker appears -> hit Advanced -> bind it to your environment variable.
        3.    On import to each environment, the wizard will prompt you to set the environment variable value, just enter the right catalog name for that environment.
    That’s it. The app will dynamically pick the correct catalog at runtime based on where it’s deployed.
    Also make sure your service principal has the right permissions on the target catalog in Unity Catalog — that’s likely why you’re seeing the 403.​​
  • Suggested answer
    11manish Profile Picture
    871 on at
    Best and simplest approach:
    • Use environment variables for catalog name
    • Or create identical views per environment and avoid catalog dependency

    You cannot reliably change catalog via solution export
    Use environment-aware configuration (variables or views)
    Ensure connection references are re-bound per environment
  • DAnderson Profile Picture
    28 Season of Giving Solutions 2025 on at
    I truly appreciate the feedback thus far! Unfortunately, the advanced option is not available with the Azure Databricks connector. I am also using a service principal to authenticate with Azure Databricks, which uses client id and secret.  The standard Databricks connector allows only a bearer token and doesn't support service principal authentication. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 538

#2
WarrenBelz Profile Picture

WarrenBelz 420 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard