# Creating record fails with "invalid value cc-by-4.0" error; licenses vocabulary is empty despite multiple initializations

**URL:** <https://invenio-talk.web.cern.ch/t/creating-record-fails-with-invalid-value-cc-by-4-0-error-licenses-vocabulary-is-empty-despite-multiple-initializations/413>\
**Category:** Community\
**Created:** [21 May 2025 16:22 UTC](https://invenio-talk.web.cern.ch/t/creating-record-fails-with-invalid-value-cc-by-4-0-error-licenses-vocabulary-is-empty-despite-multiple-initializations/413 "2025-05-21T16:22:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AAA0925](https://invenio-talk.web.cern.ch/user_avatar/invenio-talk.web.cern.ch/aaa0925/32/310_2.png) [@AAA0925](https://invenio-talk.web.cern.ch/u/AAA0925)\
**Post date:** [21 May 2025 16:22 UTC](https://invenio-talk.web.cern.ch/t/creating-record-fails-with-invalid-value-cc-by-4-0-error-licenses-vocabulary-is-empty-despite-multiple-initializations/413/1 "2025-05-21T16:22:51Z")

</div>

Hello，

I am deploying an Inveniordm，When I try to create a record, the system returns the error: `"invalid value cc-by-4.0"`.

I checked the licenses vocabulary endpoint `/api/vocabularies/licenses` and it returns an empty list:

json

```auto
{
  "hits": {
    "hits": [],
    "total": 0
  },
  "sortBy": "title",
  "links": {
    "self": "http:// ***** /api/vocabularies/licenses?page=1&size=25&sort=title"
  }
}

```

This leads me to believe the licenses vocabulary is not being loaded correctly during initialization.

To troubleshoot, I have run the initialization command `invenio-cli services setup -f` multiple times, hoping to fix this issue. However, the problem persists.

Could anyone please advise how to properly populate the licenses vocabulary or what I might be missing in the setup process?

Thank you in advance for your help!

Best regards,  
tangyang

---

<div class="post-metadata">

**Author:** ![nitarocc](https://invenio-talk.web.cern.ch/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@nitarocc](https://invenio-talk.web.cern.ch/u/nitarocc)\
**Post date:** [22 May 2025 14:54 UTC](https://invenio-talk.web.cern.ch/t/creating-record-fails-with-invalid-value-cc-by-4-0-error-licenses-vocabulary-is-empty-despite-multiple-initializations/413/2 "2025-05-22T14:54:27Z")

</div>

Hello,  
did you customize your `app_data` folder, and changed the licenses vocabulary?

Feel free to join [our chat](https://inveniordm.docs.cern.ch/contribute/onboarding/), there are many users there who can help.
