ckanapi
ckanapi copied to clipboard
load datasets: unexpected field 'id', for ckan < 2.3
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.
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