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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.