Shopify's 128 element limit for metafields ?

Topic summary

A user encountered Shopify’s 128-element limit when creating a metafield for brand filtering with approximately 300 brands. The validation error prevented adding all brands as metafield options.

Solution Identified:

  • Use Shopify’s built-in vendor attribute instead of custom metafields
  • The vendor field functions as a brand identifier and integrates with collection filters by default
  • Alternatively, product tags can serve as a brand filter substitute

Ongoing Issue:
Another user now faces the same 128-element limitation for a different metafield use case (not brand-related). No alternative workarounds have been suggested yet for metafields that cannot utilize vendor or tag fields as substitutes.

Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

I’ve created a metfield in my store to add an extra filter type “Brands” to my store’s filter, however I have around 300 brands to add as elements to the created “Filter by brand” metafield but shopify apparently have a limit of 128.

It states

“Validations value for option choices has more than 128 elements.”

What options/walkarounds do I have to add all my remaining brands as elements?

Hi @Loz86 ,

I wounder why you are using metafields for brand filter. Brand filter is by default present on the site. The vendor attribute on each product is used as a brand which can be used as a collection filter.

Is there any other reason why you have created Metafields for the brand?

Hi @theycallmemakka

Thanks very much for the reply.

I had noticed vendor in the filter options but never actually knew I could do it that way.

So thank you for pointing that out!

I had read somewhere before making this post that metafields was a way of achieving what I wanted, which was correct and did work up until I hit the 128 element metafield limit imposed by shopify.

Hi @Loz86

Instead of using the metafield, you can use the vendor or tags fields as a substitute for the brand.

Hi @magenest

Thank you, yes @theycallmemakka pointed that out to me above the other day.

1 Like

Hi all,

We are now facing the same issue, but the metafield in question is not used for brand names. Do you have any other suggestions or workarounds?

Thanks.