---
title: "How do I write KQL to find items with empty fields?"
description: "In order to write KQL to find items where a particular field is empty (empty string matching), the following KQL should be used: auto \"field\":\"\" The syntax auto \"field\": is incorrect as it is equivalent to \"field\":() which is an empty sequence (ex. type:(RQ,SW))."
category: "Frequently Asked Questions"
section: "Advanced Settings"
keywords: ["write", "matching", "kql", "sequence", "string", "behaves", "type rq", "differently"]
source_url: "https://support.ketryx.com/hc/en-us/articles/42928936616717-How-do-I-write-KQL-to-find-items-with-empty-fields"
last_reviewed: 2026-06-11
---

# How do I write KQL to find items with empty fields?

In order to write KQL to find items where a particular field is empty (empty string matching), the following KQL should be used:

```auto
"field":""
```

The syntax

```auto
"field":
```

is _incorrect_ as it is equivalent to "field":() which is an empty sequence (ex. type:(RQ,SW)). Empty sequence matching behaves differently than empty string matching.

## Related articles

- [For automated tests in Github, does integration require the project to use a specific syntax or can you work with the conventions the project already uses? Will the integration require us to change how we write automated tests?](for-automated-tests-in-github-does-integration-require-the-project-to-use-a.md)
- [How can I filter and manage risks of different types?](how-can-i-filter-and-manage-risks-of-different-types.md)
- [How can I generate ATs in my templated documents?](how-can-i-generate-ats-in-my-templated-documents.md)
- [What appears in the \"Identification of characteristics related to safety\" section of the Risk Management File?](what-appears-in-the-identification-of-characteristics-related-to-safety-section.md)
- [How can I see which items need to be approved by a specific group?](how-can-i-see-which-items-need-to-be-approved-by-a-specific-group.md)
