You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @cokeBeer,
You might want to look at the docs at https://guides.dataverse.org/en/latest/api/native-api.html#import-a-dataset-into-a-dataverse-installation-with-a-ddi-file. At the bottom of this section, it talks about the Subject field and steps needed to add subject. Note that DDI XML does not have a field that corresponds to the “Subject” field in Dataverse. Therefore the “Import DDI” API endpoint populates the “Subject” field with N/A. To update the “Subject” field one will need to call the [Edit Dataset Metadata](https://guides.dataverse.org/en/latest/api/native-api.html#edit-dataset-metadata-api) API with a JSON file that contains an update to “Subject” such as [subject-update-metadata.json](https://guides.dataverse.org/en/latest/_downloads/46f6461ca67af3fa5e33433146c486b4/subject-update-metadata.json). Alternatively, the web interface can be used to add a subject.
What steps does it take to reproduce the issue?
post ddi to import dataverse like
send the request
/api/batch/import
's http responsean error happned
me
import dataverse success, because I've tested by
https://github.com/IQSS/dataverse/blob/v5.9/src/test/java/edu/harvard/iq/dataverse/export/ddi/exportfull.xml
https://github.com/IQSS/dataverse/pull/8483/files#diff-a005f7892fff597838acaabe7cb01d0309a855d8bc77d0d1dabbac08e5495fc0
the xml sample provided in ddi import docs, or even ddi file exported by dataverse, they all have this problem
Which version of Dataverse are you using?
v. 5.11.1 build 1069-02e3e92(acutally I tried this function on demo website)
Any related open or closed issues to this bug report?
#8452
#8209
#8210
The text was updated successfully, but these errors were encountered: