简体   繁体   中英

Excel Power Query: Error Handling

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.

Fixed it with this script:

"Removed Errors" = Table.RemoveRowsWithErrors(#"Invoked Custom Function"),

This script is between source and expand the column1. I'm a Genius!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM