# Knife search command issue on latest chef workstation 26.0.18

**URL:** <https://discourse.chef.io/t/knife-search-command-issue-on-latest-chef-workstation-26-0-18/24711>\
**Category:** Chef Workstation\
**Created:** [April 21, 2026, 10:25am UTC](https://discourse.chef.io/t/knife-search-command-issue-on-latest-chef-workstation-26-0-18/24711 "2026-04-21T10:25:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven.Z](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/steven.z/32/4543_2.png) [@Steven.Z](https://discourse.chef.io/u/Steven.Z)\
**Post date:** [April 21, 2026, 10:25am UTC](https://discourse.chef.io/t/knife-search-command-issue-on-latest-chef-workstation-26-0-18/24711/1 "2026-04-21T10:25:49Z")

</div>

if you use knife search include condition "TO", "AND", "OR", "NOT" it will show bleow errors  
ERROR: Chef::Exceptions::InvalidSearchQuery: Invalid search object type nil (NilClass), must be a String or Symbol.Usage: search(:node, QUERY[, OPTIONAL\_ARGS]) `knife search environment QUERY (options)`  
`for example`  
knife search node "chef\_packages\_chef\_version:[\* TO 19]" -i  
knife search node "policy\_group:test AND policy\_name:policy\_name" -i

---

<div class="post-metadata">

**Author:** ![Vasundhara](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/vasundhara/32/3506_2.png) [@Vasundhara](https://discourse.chef.io/u/Vasundhara)\
**Post date:** [April 21, 2026, 3:21pm UTC](https://discourse.chef.io/t/knife-search-command-issue-on-latest-chef-workstation-26-0-18/24711/2 "2026-04-21T15:21:51Z")

</div>

Thanks, Steven, for reporting. We will work on the fix and we will let you know once release is out.

---

<div class="post-metadata">

**Author:** ![Steven.Z](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/steven.z/32/4543_2.png) [@Steven.Z](https://discourse.chef.io/u/Steven.Z)\
**Post date:** [July 17, 2026, 10:08am UTC](https://discourse.chef.io/t/knife-search-command-issue-on-latest-chef-workstation-26-0-18/24711/3 "2026-07-17T10:08:07Z")

</div>

confirmed it was fixed after [Chef Workstation 26.1.0 Released!](https://discourse.chef.io/t/chef-workstation-26-1-0-released/24904) Thanks.

---

<div class="post-metadata">

**Author:** ![Vasundhara](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/vasundhara/32/3506_2.png) [@Vasundhara](https://discourse.chef.io/u/Vasundhara)\
**Post date:** [July 17, 2026, 10:41am UTC](https://discourse.chef.io/t/knife-search-command-issue-on-latest-chef-workstation-26-0-18/24711/4 "2026-07-17T10:41:28Z")

</div>

Appreciate the confirmation, @Steven.Z.
