[ckan-dev] Problems using CKAN API - package_create()

Washington Nascimento washington.nascimento at splendaconsult.com.br
Tue Oct 14 15:15:57 UTC 2014


Hello Rachel,

 

Thank you for the response. It’s not the case, we are trying to insert a new
Dataset that was never there. We installed a new CKAN in a new machine, just
to test it, but nothing.

 

The url that we are using to is:

 

http://server-name/api/action/package_create

 

In the body of the POST request we are passing the json.

 

Thank you

 

From: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] On Behalf Of Rachel
Knowler
Sent: terça-feira, 14 de outubro de 2014 12:12
To: ckan-dev at lists.okfn.org
Subject: Re: [ckan-dev] Problems using CKAN API - package_create()

 

Hi Washington,

Just to check, are you trying to create a dataset with the same name as a
dataset that did exist before, but that you deleted? In this case the
original dataset is still in the database, only deactivated, so you can't
add it again. You need to purge it following these instructions:
http://docs.ckan.org/en/latest/sysadmin-guide.html#permanently-deleting-data
sets

If that's not the case, maybe someone else will know what your problem is.

Cheers,
Rachel

On 14.10.2014 16:59, Washington Nascimento wrote:

Hello everyone. 

 

I am trying to use CKAN API to insert new datasets into CKAN.

 

My problem is that i can insert one dataset, when i try to insert another
one I am having the following error:

 

409 Conflict

 

I know this error occurs when the Dataset already exists and I try to insert
again, the problem is that the second Dataset does not exists.

 

Does anyone has passed for this error?

 

Thank you!


 

-- 

Washington Nascimento






_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org> 
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev





-- 
Liip AG // Limmatstrasse 183 // CH-8005 Zürich
Tel +41 43 500 39 80 // Mob +41 78 658 26 12 // www.liip.ch
<http://www.liip.ch> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20141014/5a6d73bd/attachment-0003.html>


More information about the ckan-dev mailing list