geonames_local icon indicating copy to clipboard operation
geonames_local copied to clipboard

Validation of City failed

Open macklus opened this issue 6 years ago • 0 comments

Hi:

I run genoname_local with config:

#
# Geonames Local Config Example
#
:store: mongodb
:level: city
:nations: [es] # [] to populate nations database
:locales: [es, en]
:mapping:
  :name: name
  :geom: true
:db:
  :host: localhost
  :name: geonames_local
  # :user:
  # :password:
  # :purge: false

and find errors like:

message:
  Validation of City failed.
summary:
  The following errors were found: Code is already taken
resolution:
  Try persisting the document with valid data or remove the validations. /var/lib/gems/2.5.0/gems/mongoid-7.0.1/lib/mongoid/persistable.rb:76:in `fail_due_to_validation!'

thanks in advance

macklus avatar Jul 09 '18 08:07 macklus