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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DHawes
Frequent Visitor

Query refresh with field changes

My data model is currently loading an xml file each day.   It is a complete reload, not incremental.

The xml is output from a postgres database and I do not want to link directly yet.

 

I have one field/attribute in the xml file that is included on some days, but not others.

 

I have included in my data model, but when it does not exist in the xml input, the dataset refresh fails.

 

Is there someway to bypass this error?

 

Thanks

Dwight

1 ACCEPTED SOLUTION
dkay84_PowerBI
Microsoft Employee
Microsoft Employee

I am interpreting what you are saying as your query breaks when a field that you reference in your query is not present.  That means that somewhere in your query editing steps you reference that column (either directly or indirectly) and thus it cannot find the field that is missing and it throws an error. 

 

Again, I'm not sure if this is the situation but try looking at the steps in your query and see if it breaks at the source or somewhere in the applied steps.  If it is a step, then you can do some error handling to work around this.  Take a look at this example:

 

https://blog.crossjoin.co.uk/2015/02/26/handling-added-or-missing-columns-in-power-query/

View solution in original post

1 REPLY 1
dkay84_PowerBI
Microsoft Employee
Microsoft Employee

I am interpreting what you are saying as your query breaks when a field that you reference in your query is not present.  That means that somewhere in your query editing steps you reference that column (either directly or indirectly) and thus it cannot find the field that is missing and it throws an error. 

 

Again, I'm not sure if this is the situation but try looking at the steps in your query and see if it breaks at the source or somewhere in the applied steps.  If it is a step, then you can do some error handling to work around this.  Take a look at this example:

 

https://blog.crossjoin.co.uk/2015/02/26/handling-added-or-missing-columns-in-power-query/

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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