My excel uses data from an api url, I run the query every 10 mins, but if the api has a lot of traffic and returns a 404 error, I get a pop up error "DataSource.Error web.content failed to get content from api url (404);Not Found" and the whole spread sheet isn't working until I click okay, what I need to do is to let the query to keep trying the api url until it gets data to return instead of throwing an error. here's the query that I run:
let
Source = Json.Document(Web.Contents("api url")),
#"Converted to Table" = Record.ToTable(Source),
#"Removed Top Rows" = Table.Skip(#"Converted to Table",9),
#"Removed Bottom Rows" = Table.RemoveLastN(#"Removed Top Rows",6)
in
#"Removed Bottom Rows"
I tried to add MaunalStatusHandling but it didn't solve the problem as I kept getting error messages. I hope that someone can show me a way to solve this
thanks in advance for your help