cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MatjoCol
Frequent Visitor

Missing column from nested XML generates error when trying Table.ExpandTableColumn

Hi, 

I am trying to get data from an XML which has some nested fields. The problem I am encountering is that sometimes fields are missing from the XML so when I try to Table.ExpandTableColumn I get an error. It would have been nice if you could use MissingField.Ignore to handle the missing columns but it does not work. 

Is there a way to work around this? I know the name of all columns that potentially be present in the XML if that is any help.

 

Best regards,
Mattias 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @MatjoCol ,

 

Please refer:

https://blog.crossjoin.co.uk/2014/05/21/expanding-all-columns-in-a-table-in-power-query/ 

https://community.powerbi.com/t5/Desktop/How-to-expand-all-nested-tables-at-once-table-expandtableco... 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @MatjoCol ,

 

Please refer:

https://blog.crossjoin.co.uk/2014/05/21/expanding-all-columns-in-a-table-in-power-query/ 

https://community.powerbi.com/t5/Desktop/How-to-expand-all-nested-tables-at-once-table-expandtableco... 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Top Solution Authors
Top Kudoed Authors