metaobject problem

Topic summary

A user is experiencing an issue where Shopify automatically creates duplicate metaobjects/metafields (shown in blue/“blå” in screenshots) even when selecting from existing options. The cause and prevention method are unclear.

Suggested Solution:

  • Ensure metaobjects are properly published
  • Verify products/pages have valid references to metaobjects
  • Use correct Liquid syntax to call metaobjects:
    • Assign with .value: {% assign details = product.metafields.custom.ingredients.value %}
    • Access fields: {{ details.title }} and {{ details.list }}
  • Missing .value or blank references will result in null output

Status: The root cause of automatic duplicate creation remains unresolved. The response addresses proper metaobject implementation but doesn’t directly explain why duplicates appear.

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

Somehow shopify creates its own metaobjects/fields, see pictures of the extra blue (blå), I can’t find why this is done and how to prevent it.

I choose from the list among those that already exist, but new ones gets created sometimes.

1 Like

first big thing is you gotta make sure the metaobject is actually published and the product or page has a valid reference to it
like if you made a metaobject called “ingredients” and it has fields like title and list you need to connect that to the product using a reference metafield

n your code you call it like this

{% assign details = product.metafields.custom.ingredients.value %}

then you can do

{{ details.title }}
{{ details.list }}

if that .value is missing or if the reference is blank then details will be null and nothing will show up