Cannot revise contacts via import

Bug #1417255 reported by Tom Hoffman on 2015-02-02
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Douglas Cerna

Bug Description

Morning Sir, I added 1200 contacts to my list in schooltool and i accidentally uploaded the csv file in the wrong order such that last name and firstname is in the wrong place i want to delete all the contact and re upload same. How can i go about doing this and not having to delete them 1 by 1.

I suggested just updating these but that generates a "username duplicated" error.

Changed in schooltool:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Douglas Cerna (replaceafill)
milestone: none → next
Klaas Kouwen (kkouwen) wrote :

Tried to circumvent this error by completely deleting schooltool via synaptic. Started all over, but the same message appears after defining Demographics and then adding a person.

Where is the ID-data stored? Please indicate what to delete to start with a fresh system. But am also interested in hearing how to clean up a mistaken import as already mentioned.

Error Details:


ValueError: ('Duplicate name', 'first_name')


File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 132, in publish
  result = publication.callObject(request, obj)
File "/usr/lib/python2.7/dist-packages/zope/app/publication/", line 205, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 107, in mapply
  return debug_call(obj, args)
Extra information: < object at 0xad44c3ac>
File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 113, in debug_call
  return obj(*args)
File "/usr/lib/python2.7/dist-packages/z3c/form/", line 216, in __call__
File "/usr/lib/python2.7/dist-packages/schooltool/basicperson/browser/", line 1007, in update
File "/usr/lib/python2.7/dist-packages/schooltool/basicperson/browser/", line 987, in update
  self.fields += self.getDemoFields()
File "/usr/lib/python2.7/dist-packages/z3c/form/", line 273, in __add__
  return self.__class__(self, other)
File "/usr/lib/python2.7/dist-packages/z3c/form/", line 136, in __init__
  raise ValueError("Duplicate name", name)


schooltool 2.8.5 (/usr/lib/python2.7/dist-packages)

schooltool.gradebook (/usr/lib/python2.7/dist-packages)

schooltool.intervention 2.7.0 (/usr/lib/python2.7/dist-packages)

schooltool.lyceum.journal (/usr/lib/python2.7/dist-packages)

Python 2.7.6 (default, Jun 22 2015, 18:00:18) [GCC 4.8.2]

Linux vcs_schooltool 3.13.0-77-generic #121-Ubuntu SMP Wed Jan 20 10:50:59 UTC 2016 i686 i686

Filesystem encoding UTF-8, preferred UTF-8

Klaas Kouwen (kkouwen) wrote :

Found out I have to do a full reset of my system (after deleting the database) before the change is noticed. Only restarting the browser wasn't enough. Didn't realize that. Things are OK now. Thanks

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions