how to determine which foreign key is the constraint problem? <class 'sqlite3.IntegrityError'> foreign key constraint failed Version web2py™ Version 2.9.5-stable+timestamp.2014.03.20.22.57.13 Python Python 2.7.6: C:\Program Files\web2py\web2py.exe (prefix: C:\Python27) Traceback
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Traceback (most recent call last): File "/home/mdipierro/make_web2py/web2py/gluon/restricted.py", line 220, in restricted File "C:/Program Files/web2py/applications/ceaA/controllers/default.py" <http://127.0.0.1:8000/admin/default/edit/ceaA/controllers/default.py>, line 1061, in <module> File "/home/mdipierro/make_web2py/web2py/gluon/globals.py", line 385, in <lambda> File "/home/mdipierro/make_web2py/web2py/gluon/tools.py", line 3287, in f File "C:/Program Files/web2py/applications/ceaA/controllers/default.py" <http://127.0.0.1:8000/admin/default/edit/ceaA/controllers/default.py>, line 408, in add_new_government_organization partyID = db.Party.insert(**db.Party._filter_fields(form.vars)) File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 9114, in insert File "/home/mdipierro/make_web2py/web2py/gluon/dal.py", line 1360, in insert IntegrityError: foreign key constraint failed thanks, Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.