ckanapi icon indicating copy to clipboard operation
ckanapi copied to clipboard

load datasets: unexpected field 'id', for ckan < 2.3

Open deniszgonjanin opened this issue 10 years ago • 1 comments

If you do a wholesale ckanapi dump datasets --all -O data.jl and then ckanapi load datasets -I data.jl, the command will fail on a base CKAN instance because CKAN does not allow you to set the ID of a new dataset.

Curiously, this works just fine for resources, and groups/organizations.

deniszgonjanin avatar Oct 24 '14 19:10 deniszgonjanin

fixed in latest ckan (admins can set package ids now) but we should probably have a workaround for older ckan versions, or for people wanting to load without being an admin

wardi avatar Feb 04 '15 15:02 wardi