In Excel I'm trying to import data from API: 
But sometimes if there is no data I get this 
Problem is that there is another query that relies on this list and keep throwing error if there is one missing item from the long list: 
How do I error handle this? I tried If [HasError] Then Else clause but it doesn't work because the last step is expecting to expand Column 1 of the table.
Please help, I'm a SQL developer and this is as far as in the front development I could go.