[ECODP-dev] ODP-248

John Glover john.glover at okfn.org
Mon Sep 16 10:54:27 UTC 2013


Hi Bert,

The error message means that you are trying to create a new publisher
(synonym for group) with the same name as an existing publisher name, and
so validation is failing.

Is this using our update-publishers paster command? If this is a publisher
that should be updated instead of created, then this sounds like a bug. If
so, can you provide me with the publishers list that you are using for this
so that I can replicate this and resolve it?

Thanks,
John




On 16 September 2013 12:10, Bert Van Nuffelen <
bert.van.nuffelen at tenforce.com> wrote:

> Hi John,
>
> can you provide feedback on the error message occuring while uploading a
> new publisher list.
> Also it would be good, if the error message is more precise.
>
> Traceback (most recent call last):
>   File "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/bin/paster",
> line 8, in <module>
>     load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')()
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/lib/python2.6/site-packages/paste/script/command.py",
> line 84, in run
>     invoke(command, command_name, options, args[1:])
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/lib/python2.6/site-packages/paste/script/command.py",
> line 123, in invoke
>     exit_code = runner.run(args)
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/lib/python2.6/site-packages/paste/script/command.py",
> line 218, in run
>     result = self.command()
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/src/ckanext-ecportal/ckanext/ecportal/commands.py",
> line 115, in command
>     self.update_publishers()
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/src/ckanext-ecportal/ckanext/ecportal/commands.py",
> line 602, in update_publishers
>     self._add_publishers(new_publishers)
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/src/ckanext-ecportal/ckanext/ecportal/commands.py",
> line 408, in _add_publishers
>     logic.get_action('group_create')(context, group)
>   File
> "/applications/ecodp/users/ecodp/ckan/lib/ecodp/pyenv/src/ckan/ckan/logic/action/create.py",
> line 483, in group_create
>     raise ValidationError(errors, error_summary(errors))
> ckan.logic.ValidationError: {'Name': 'Group name already exists in
> database'}
>
> more context see:
>
> https://webgate.ec.europa.eu/publications/jira/browse/ODP-248
>
> kind regards,
>
> Bert
> --
> Bert Van Nuffelen
>
> Semantic Technologies Software Architect at TenForce
> www.tenforce.be
>
> Bert.Van.Nuffelen at tenforce.com
> Office: +32 (0)16 31 48 60
> Mobile:+32 479 06 24 26
> skype: bert.van.nuffelen
>
> _______________________________________________
> Ecodp-dev mailing list
> Ecodp-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ecodp-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20130916/7d2336dc/attachment.html>


More information about the ecodp-dev mailing list