We need to store data into variant metafields that can be longer than 65,536 character limit.
Is there any alternative or workaround to do so ?
Main issue: Variant metafields need to store values larger than the 65,536 character limit for use cases like vehicle fitment lists spanning hundreds of vehicles.
Guidance from Metafields team:
Clarifications provided:
Outcome: Practical workarounds identified (JSON or string metafields) that exceed the original limit. No further action items noted; questions about limits and deprecation were answered. Status appears resolved.
We need to store data into variant metafields that can be longer than 65,536 character limit.
Is there any alternative or workaround to do so ?
What are you storing that would require more than that? Knowing this context is helping for discussing other approaches.
Our largest data field stores vehicle filtment data. We store information before the vehicles that are compatible with the given part the visitor is looking at which could be hundreds of vehicles.
Hi there,
I’m Katherine from the Metafields team. The best workaround would be to structure the data as json, and then use a json type metafield, which allows up to 2M characters. Alternatively if json isn’t an option, you can use the string type, however note that there’s no definition support for the string type.
Thx , Those are great options thank you. Two questions:
The length limit is 5M characters.
We have no current plans to phase out the string type.
Hi KathB -
Just so I understand this message correctly.
Can I confirm that the 2M characters is 2 million characters?
Looking forward to your feedback, thanks a lot.
@KathB 2M or 5M?
M => megabytes or characters ?
Yes, 2 million characters.