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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Jagruthi_Kesha
Frequent Visitor

Power BI model refresh fails due to deleted or renamed columns in upstream.

Hi,

I'm encountering an issue where the Power BI scheduled refresh fails in the Service whenever columns are deleted or renamed in the upstream (Snowflake) source. I'm using Import mode to load the data, and my Power Query script is structured as follows:


let
Source = Snowflake.Databases(Snowflakeurl,"WH_XS"),
ABC_Database = Source{[Name="ABC",Kind="Database"]}[Data],
XYZ_Schema = ABC_Database{[Name="XYZ",Kind="Schema"]}[Data],
SALES_Table = XYZ_Schema{[Name="SALES",Kind="Table"]}[Data]
in
SALES_Table 


How can I handle schema changes gracefullysuch as column deletions or renames - so that scheduled refreshes don't break in the Power BI Service?


Thanks for the help!

2 ACCEPTED SOLUTIONS
Omid_Motamedise
Super User
Super User

Hi @Jagruthi_Kesha 

 

You add a new step as following to handle it.

let
    Source = Snowflake.Databases(Snowflakeurl,"WH_XS"),
    ABC_Database = Source{[Name="ABC",Kind="Database"]}[Data],
    XYZ_Schema = ABC_Database{[Name="XYZ",Kind="Schema"]}[Data],
    SALES_Table = XYZ_Schema{[Name="SALES",Kind="Table"]}[Data],
    Untyped = Value.ReplaceType(SALES_Table, type table [ ])
in
    Untyped

 


If my answer helped solve your issue, please consider marking it as the accepted solution.

View solution in original post

V-yubandi-msft
Community Support
Community Support

Hi @Jagruthi_Kesha ,

Thank you for reaching out to the Fabric Community. To add to @Omid_Motamedise  response, here’s a note for those using the Value.ReplaceType method  when a table becomes untyped, Power Query will stop enforcing column types.
As a result, if your data changes, later steps that depend on specific columns or data types could fail. To maintain some type safety while allowing for schema changes, you can use Table.SelectColumns together with List. Intersect to dynamically select only the columns present in your source data.


Thanks for your quick response @Omid_Motamedise .

Regards,

Yugandhar.

View solution in original post

6 REPLIES 6
V-yubandi-msft
Community Support
Community Support

Hi @Jagruthi_Kesha ,

Could you let us know if your issue has been resolved, or if you need any additional information or clarification? We are happy to help.

 

Thank you.

V-yubandi-msft
Community Support
Community Support

Hi @Jagruthi_Kesha ,

May I know if your issue has been resolved, or if you still need any additional details? Please let us know if you need any further assistance.
 

Thank you.

V-yubandi-msft
Community Support
Community Support

Hi @Jagruthi_Kesha ,

Thank you for reaching out to the Fabric Community. To add to @Omid_Motamedise  response, here’s a note for those using the Value.ReplaceType method  when a table becomes untyped, Power Query will stop enforcing column types.
As a result, if your data changes, later steps that depend on specific columns or data types could fail. To maintain some type safety while allowing for schema changes, you can use Table.SelectColumns together with List. Intersect to dynamically select only the columns present in your source data.


Thanks for your quick response @Omid_Motamedise .

Regards,

Yugandhar.

Hi @V-yubandi-msft @Omid_Motamedise 

I tried updating the query below, but the Power BI refresh still failed after a column was dropped from the Sales table in Snowflake. Can you tell me if I’m missing something?



let
Source = Snowflake.Databases(snowflakeurl, SnowflakeImport),
ABC_Database = Source{[Name="ABC",Kind="Database"]}[Data],
XYZ_Schema = ABC_Database{[Name="XYZ",Kind="Schema"]}[Data],
SALES_TABLE = JOB_Schema{[Name="SALES",Kind="View"]}[Data],
ExistingColumns = Table.ColumnNames(SALES_TABLE),
DesiredRenames = {{"SALES_AMOUNT", "Sales Amount"}},
ValidRenames = List.Select(DesiredRenames, each List.Contains(ExistingColumns, _{0})),
RenamedTable = Table.RenameColumns(SALES_TABLE, ValidRenames, MissingField.Ignore)
in
RenamedTable

Thank you for sharing the updated query. I noticed that you defined XYZ_Schema earlier, but later referenced JOB_Schema here:

SALES_TABLE = JOB_Schema{[Name="SALES",Kind="View"]}[Data]

If that wasn’t intentional, it might need to reference the same schema as before:

SALES_TABLE = XYZ_Schema{[Name="SALES",Kind="View"]}[Data]

Also, even if you use MissingField.Ignore, the refresh can still fail if another step or the dataset model is referencing the dropped column. Please check if the removed column is used elsewhere in the query steps, measures, relationships, or visuals.

 

Thanks....

Omid_Motamedise
Super User
Super User

Hi @Jagruthi_Kesha 

 

You add a new step as following to handle it.

let
    Source = Snowflake.Databases(Snowflakeurl,"WH_XS"),
    ABC_Database = Source{[Name="ABC",Kind="Database"]}[Data],
    XYZ_Schema = ABC_Database{[Name="XYZ",Kind="Schema"]}[Data],
    SALES_Table = XYZ_Schema{[Name="SALES",Kind="Table"]}[Data],
    Untyped = Value.ReplaceType(SALES_Table, type table [ ])
in
    Untyped

 


If my answer helped solve your issue, please consider marking it as the accepted solution.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.