Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Migrating code from one env toanother

I craeted a query for source system, so when I migrate my code to different env I don't have to change source for each table one by one, becuase I have over 10 table in the model. Database is Oracle

 

Query 1:

let
    Source = Oracle.Database("orcl")
in
    Source

 

I'm trying to call above query trying to use follwing query for each table (Facts is a table name), so when I migrate to production, all I have to do is change the Query 1.

 

let
    Source = Oracle.Database(Query1.Fact)
in
    Source

 

But I'm getting error:

Expression.Error: The name 'Query1.Fact' wasn't recognized.  Make sure it's spelled correctly.

 

What am I doing wrong here? or is there a better approach to migrating code from one env to another?

 

Thansk in advance.

1 ACCEPTED SOLUTION
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

If I understand you correctly, you should be able to change your data source under Data source Settings which could be easier in this scenario. Smiley Happy

 

Option 1: File – Options and Settings

image

Option 2: Edit Queries Menu

The second option to open the settings dialog is contained in the “Edit Queries” toolbar item menu.

image

 

changeDs.png

 

Regards

View solution in original post

1 REPLY 1
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

If I understand you correctly, you should be able to change your data source under Data source Settings which could be easier in this scenario. Smiley Happy

 

Option 1: File – Options and Settings

image

Option 2: Edit Queries Menu

The second option to open the settings dialog is contained in the “Edit Queries” toolbar item menu.

image

 

changeDs.png

 

Regards

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors