Forum Discussion
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
Hi MatjoCol ,
Please refer:
https://blog.crossjoin.co.uk/2014/05/21/expanding-all-columns-in-a-table-in-power-query/
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 Reply
- V-lianl-msftCommunity Support
Hi MatjoCol ,
Please refer:
https://blog.crossjoin.co.uk/2014/05/21/expanding-all-columns-in-a-table-in-power-query/
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.