# Invalid value cc-by-4.0

**URL:** <https://invenio-talk.web.cern.ch/t/invalid-value-cc-by-4-0/263>\
**Category:** General Discussion\
**Created:** [20 October 2022 13:43 UTC](https://invenio-talk.web.cern.ch/t/invalid-value-cc-by-4-0/263 "2022-10-20T13:43:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlos1204](https://invenio-talk.web.cern.ch/user_avatar/invenio-talk.web.cern.ch/charlos1204/32/201_2.png) [@charlos1204](https://invenio-talk.web.cern.ch/u/charlos1204)\
**Post date:** [20 October 2022 13:43 UTC](https://invenio-talk.web.cern.ch/t/invalid-value-cc-by-4-0/263/1 "2022-10-20T13:43:34Z")

</div>

Hi all

I have running an invenio instance for a few months without a problem.  
Until yesterday after upgrade my OS (ubuntu 22.04) and adding the affiliations in the vocabularies.yaml,  
I cannot upload any file or create a record. At the bottom I have pasted the error message.  
Any clues?

invenio\_records.systemfields.relations.errors.InvalidRelationValue: Invalid value cc-by-4.0.  
/home/hmgu/.local/share/virtualenvs/nefeli-rdm-88E9xufH/lib/python3.9/site-packages/flask\_resources/errors.py:97: DeprecationWarning: ‘JSONEncoder’ is deprecated and will be removed in Flask 2.3. Use ‘Flask.json’ to provide an alternate JSON implementation instead.  
return json.dumps(body, cls=JSONEncoder)

Thanks in advance.  
Carlos Garcia

---

<div class="post-metadata">

**Author:** ![ppanero](https://invenio-talk.web.cern.ch/user_avatar/invenio-talk.web.cern.ch/ppanero/32/40_2.png) [@ppanero](https://invenio-talk.web.cern.ch/u/ppanero)\
**Post date:** [25 October 2022 11:13 UTC](https://invenio-talk.web.cern.ch/t/invalid-value-cc-by-4-0/263/2 "2022-10-25T11:13:00Z")

</div>

Hi Carlos! it seems that for some reason your licenses vocabularies was deleted (then the default one - cc-by-4.0 -, is not being able to be linked to the records).

You can check if said license still exists by querying the `/api/vocabularies/licenses` endpoint.

In addition, you might get faster answers in our Discord server: [inveniosoftware](https://discord.gg/PhgbxPpJ)

---

<div class="post-metadata">

**Author:** ![charlos1204](https://invenio-talk.web.cern.ch/user_avatar/invenio-talk.web.cern.ch/charlos1204/32/201_2.png) [@charlos1204](https://invenio-talk.web.cern.ch/u/charlos1204)\
**Post date:** [25 October 2022 12:42 UTC](https://invenio-talk.web.cern.ch/t/invalid-value-cc-by-4-0/263/3 "2022-10-25T12:42:54Z")

</div>

Thanks ppanero for your response.  
Indeed the vocabularies licenses were deleted.  
How can I restore them?

Regards
