# Bug: filter for fields in Flow

**URL:** <https://community.shopify.dev/t/bug-filter-for-fields-in-flow/3038>\
**Category:** Shopify Flow\
**Tags:** automation\
**Created:** [November 25, 2024, 9:26am UTC](https://community.shopify.dev/t/bug-filter-for-fields-in-flow/3038 "2024-11-25T09:26:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AdminGh](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@AdminGh](https://community.shopify.dev/u/AdminGh)\
**Post date:** [November 25, 2024, 9:26am UTC](https://community.shopify.dev/t/bug-filter-for-fields-in-flow/3038/1 "2024-11-25T09:26:20Z")

</div>

Hi there,

Seems like there is a bug with the filter in Flow. Title is definitely on the Product Object.

 ![image](https://global.discourse-cdn.com/shopifycommunity/original/2X/2/2db79e788c9ee943d8e6a44eabaa999d1891746f.png)

---

<div class="post-metadata">

**Author:** ![paul\_n](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/paul_n/32/108_2.png) [@paul\_n](https://community.shopify.dev/u/paul_n)\
**Post date:** [November 25, 2024, 2:25pm UTC](https://community.shopify.dev/t/bug-filter-for-fields-in-flow/3038/2 "2024-11-25T14:25:35Z")

</div>

I haven’t seen that before, but it looks like a network or system issue and not a “not found” issue. Is the searching working for you now?

---

<div class="post-metadata">

**Author:** ![AdminGh](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@AdminGh](https://community.shopify.dev/u/AdminGh)\
**Post date:** [November 26, 2024, 1:23pm UTC](https://community.shopify.dev/t/bug-filter-for-fields-in-flow/3038/3 "2024-11-26T13:23:37Z")

</div>

@paul_n

Still not working. But I think I know why. I deleted one of the product metafields. Then the search is not working.

Request:

```auto
{
  "operationName": "getSearchStepEnvironment",
  "variables":
  {
    "workflowId": "0191a98f-84fa-7d1f-abb8-0da393fb9235",
    "workflowVersion": "0191a98f-84fa-7c60-bc27-9ef057ab4fad",
    "stepId": "c4e1ed80-ab0d-11ef-9e25-53172a17a54c",
    "searchTerm": "title",
    "pathPrefix": "product",
    "dataTypeFilter":
    {
      "filterType": "ALL",
      "scalars":
      []
    },
    "pathDeprecationFilter": "NON_DEPRECATED"
  },
  "query": "query getSearchStepEnvironment($workflowId: ID!, $workflowVersion: String, $stepId: String!, $searchTerm: String!, $pathPrefix: String, $dataTypeFilter: DataTypeFilter!, $rootNameFilter: [String!], $extraSearchRoots: [ExtraSearchRoot!], $pathDeprecationFilter: PathDeprecationFilter) {\n searchStepEnvironment(\n workflowId: $workflowId\n workflowVersion: $workflowVersion\n stepId: $stepId\n pathPrefix: $pathPrefix\n searchTerm: $searchTerm\n dataTypeFilter: $dataTypeFilter\n rootNameFilter: $rootNameFilter\n extraSearchRoots: $extraSearchRoots\n pathDeprecationFilter: $pathDeprecationFilter\n ) {\n paths {\n typename\n description\n path\n isDeprecated\n deprecationReason\n isProtected\n isPathFragment\n __typename\n }\n version\n__ typename\n }\n}"
}

```

Response:

```auto
{
    "errors": [
        {
            "message": "Metafield type not found: metaobject_reference",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": [
                "searchStepEnvironment"
            ]
        }
    ],
    "data": null
}

```

---

<div class="post-metadata">

**Author:** ![paul\_n](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/paul_n/32/108_2.png) [@paul\_n](https://community.shopify.dev/u/paul_n)\
**Post date:** [November 26, 2024, 4:55pm UTC](https://community.shopify.dev/t/bug-filter-for-fields-in-flow/3038/4 "2024-11-26T16:55:15Z")

</div>

Thanks, we think we found the problem related to metafields as you suggested. We are in a code freeze until after BFCM…can you wait until next week?

---

<div class="post-metadata">

**Author:** ![paul\_n](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/paul_n/32/108_2.png) [@paul\_n](https://community.shopify.dev/u/paul_n)\
**Post date:** [November 26, 2024, 5:29pm UTC](https://community.shopify.dev/t/bug-filter-for-fields-in-flow/3038/5 "2024-11-26T17:29:56Z")

</div>

If necessary we can turn off the flag for you shop and revert you back to the old search experience. But we would need your shop id / slug

---

<div class="post-metadata">

**Author:** ![paul\_n](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/paul_n/32/108_2.png) [@paul\_n](https://community.shopify.dev/u/paul_n)\
**Post date:** [December 5, 2024, 4:33pm UTC](https://community.shopify.dev/t/bug-filter-for-fields-in-flow/3038/6 "2024-12-05T16:33:01Z")

</div>

I think this is fixed now, if you were still having the issue

---

<div class="post-metadata">

**Author:** ![AdminGh](https://avatars.discourse-cdn.com/v4/letter/a/3be4f8/32.png) [@AdminGh](https://community.shopify.dev/u/AdminGh)\
**Post date:** [December 11, 2024, 11:32am UTC](https://community.shopify.dev/t/bug-filter-for-fields-in-flow/3038/7 "2024-12-11T11:32:06Z")

</div>

@paul_n thank you! Enjoy the holidays!
