The typical ways of handling this is to either use filters to eliminate the records producing the errors, or if this is not possible, to use the Try...Otherwise statement to provide an alternate value if an error occurs. If you can implement either of these in the query steps before the expand step, it should resolve your issue. All this advice is theoretical as I don't have insights into your query design. If it makes sense and seems a viable option, give either a try.
For details on Try...Otherwise, see:
- https://msdn.microsoft.com/en-us/library/mt186368.aspx
- https://blog.gbrueckl.at/2013/12/err...n-power-query/
Bookmarks