Skip to content

Native API: Import ddi dataset example needs a sample ddi file like the json example has. #8209

@kcondon

Description

@kcondon

Have tried using the ddi export of an existing dataset from another system but it fails with a seemingly false error about missing subject, like it is failing parsing and subject just happens to be where it exits?

curl -H X-Dataverse-key:xxxx-xxxx-xxxx -X POST "http://localhost:8080/api/dataverses/root/datasets/:importddi?pid=doi:10.70122/FK2/LG1AGZ&release=yes" --upload-file ddi_dataset4.xml
{"status":"ERROR","message":"Validation Failed: Subject is required. (Invalid value:edu.harvard.iq.dataverse.DatasetField[ id=null ])."}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions