Netlify-cms: "fields names must be unique" with 2.10.50, no change in config.yml

Created on 16 Jun 2020  路  3Comments  路  Source: netlify/netlify-cms

Describe the bug
Trying to access [url].netlify.app/admin/ using the latest version of Netlify CMS _(2.10.50)_ yields the following error:

Error loading the CMS configuration
Config Errors:
'collections[1].files[8].fields' fields names must be unique
Check your config.yml file.

To Reproduce
I unfortunately can't provide the config.yml in question.

Screenshots
Screen Shot 2020-06-16 at 10 39 29 AM

Applicable Versions:

  • netlify-cms 2.10.50
  • netlify-cms-core 2.28.0
  • netlify-cms-app 2.12.14
configuration not a bug

All 3 comments

Hi @matteocargnelutti, can you share your full config.yml?
This is not a bug, but a new schema validation that was not checked previously - duplicate field names under the same collection will result in losing that information when the entry is persisted.

Hi @erezrokah

can you share your full config.yml?

I unfortunately can't.

This is not a bug, but a new schema validation that was not checked previously - duplicate field names under the same collection will result in losing that information when the entry is persisted.

Got it ! Turned out there was indeed a duplicate there, from a merge conflict resolution.

Thanks a lot and sorry for the noise 馃憤

I'm glad the new validation is already paying off!

Was this page helpful?
0 / 5 - 0 ratings