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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Jagruthi_Kesha
Regular 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

4 REPLIES 4
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.

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.