Hi @Anonymous,
Could you provide detailed configuration of your Table?
I noticed that although you are input a query that produces blank results, the output of Query Results still contains Values, so the result of Condition is True.

But because there is no matching value to create CSV table, it leads to such an error.
I think that in your Condition, you may have to specify which fields have no query results, so that it could be more accurate.
Please try to specify the judgment in the Condition to the column level. For example, if the column xxx query results are empty, the result will be False.
Best Regards,
Barry