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?
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?
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.