-
Notifications
You must be signed in to change notification settings - Fork 535
Closed
Milestone
Description
Starting v5.7, it’s possible to define metadataLanguage for a dataset. This value also gets exported in dataverse_json. When it’s not defined, "metadataLanguage":"undefined" is exported.
However, it appears that this “undefined” value is not accepted on import: Specified metadatalanguage not allowed.
As an example: None of the datasets in our own prod. have the metadata language defined; and all the datasets have been re-exported since 5.7. So the impact of this is that none of our prod. dataverse_json exports are importable.
It appears that the code on the import side that's actually throwing the exception has only been added in 5.11; so that must be the reason nobody has noticed/complained yet:
if(mdl==null || settingsService.getBaseMetadataLanguageMap(new HashMap<String,String>(), true).containsKey(mdl)) {
dataset.setMetadataLanguage(mdl);
}else {
throw new JsonParseException("Specified metadatalanguage not allowed.");
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels