error: {'status': 'ERROR', 'message': 'Error parsing Json: incorrect typeClass for field kindOfData, should be controlledVocabulary'} #153
Labels
status:incoming
Newly created issue to be forwarded
Hi, recently our institution updated Dataverse Version to '5.11.1'.
Previously, the metadata Kind of Data wasn't mandatory for our institution, but now it is, and it appears with and dropdow with some options.
I am trying to create a dataset with Pydataverse with this code:
from pyDataverse.models import Dataset
ds = Dataset()
ds_filename = "dataset.json"
ds.from_json(read_file(ds_filename))
ds.validate_json()
resp = api.create_dataset("pyDataverse_user-guide", ds.json())
resp.json()
But i got this error: {'status': 'ERROR', 'message': 'Error parsing Json: incorrect typeClass for field kindOfData, should be controlledVocabulary'}
I attached the json I am using
The text was updated successfully, but these errors were encountered: