How to Move Dataverse into another Dataverse

34 views
Skip to first unread message

sukdith punjasthitkul

unread,
Aug 29, 2019, 10:52:40 AM8/29/19
to Dataverse Users Community
We have two dataverses within Root Dataverse:

Root > Dataverse A
Root > Dataverse B

What we'd like to do is move Dataverse B into Dataverse A:

Root > Dataverse A > Dataverse B

I'm trying to follow the instructions in the documentation 

and i'm getting xhtml output that basically says "Internal Server Error - An unexpected error was encountered, no more information is available."

We are on Dataverse v. 4.14 build 1326-57a392d

The command I used was 

curl -H "X-Dataverse-key:MY-GENERATED-API-KEY" -kX POST https://localhost:8181/api/dataverses/Dataverse-B/move/Dataverse-A

Was there something in my command that I mis-typed? 

--sukie--


Julian Gautier

unread,
Aug 29, 2019, 11:28:30 AM8/29/19
to Dataverse Users Community
Hi Sukie,

Thanks for including the Dataverse version you're running. Versions before 4.15 had a bug where the dataverse to be moved could not be moved if it contained one or more datasets. So I'm guessing that in your case, Dataverse A contains at least one dataset?

The bug was fixed in Dataverse 4.15. See https://github.com/IQSS/dataverse/issues/5774 for more info.

The curl command you included has a -kX before the POST. Was that intentional? From what I can tell, the guides don't have that "k".

Hope this helps!

Julian

Julian Gautier
Product Research Specialist, IQSS

Julian Gautier

unread,
Aug 29, 2019, 11:31:48 AM8/29/19
to Dataverse Users Community
Oh, I should also mention for future reference that I used this API twice recently, in an installation running 4.16. At first it appeared like it didn't work, but eventually it did. Just took some time.

sukdith punjasthitkul

unread,
Aug 29, 2019, 3:24:23 PM8/29/19
to Dataverse Users Community
Hi Julian, 

Updating to 4.16 fixed the issue. I was able to move the dataverses using the API. Thanks!

--sukie--

Julian Gautier

unread,
Aug 29, 2019, 3:51:02 PM8/29/19
to Dataverse Users Community
Great to hear! Thanks for letting us know!
Reply all
Reply to author
Forward
0 new messages