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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors