Batch Query Returning No Workflows or Invalid Executions
warningBatch operations depend on either a Query parameter or explicit Executions list to identify target workflows. Invalid queries or empty result sets will cause batch operations to complete without processing any workflows, potentially masking operational issues.
Batch workflow completes successfully but BatchOperationStats shows NumSuccess = 0 and NumFailure = 0, indicating no workflows were processed. This suggests the Query parameter returned no results or the Executions list was empty.
1. Check BatchOperationStats memo field to verify NumSuccess and NumFailure counts. 2. Validate the Query parameter syntax matches Temporal's list workflow query format. 3. Test the query independently using CLI or API to verify it returns expected workflows. 4. Check if the target Namespace exists and is active. 5. Verify workflow visibility is working correctly (workflows may exist but not be indexed). 6. If using Executions list directly, verify it contains valid WorkflowExecution objects. 7. Check OpenBatchOperationQuery format to ensure batch operation discovery queries are correct. 8. Review temporal_server_list_executions_failures metric for issues with list operations. 9. Verify search attributes and filters used in Query are properly configured.