← Back to team overview

dhis2-devs team mailing list archive

[Bug 642550] Re: Exception occur when create new Dataset section

 

** Changed in: dhis2
       Status: New => Fix Committed

** Changed in: dhis2
     Assignee: (unassigned) => Hieu Duy Dang (hieu-hispvietnam)

-- 
Exception occur when create new Dataset section
https://bugs.launchpad.net/bugs/642550
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.

Status in DHIS 2 - District Health Information Software: Fix Committed

Bug description:
Exception occurs when add a section contains data element which is belong to existing section

- Exception (org.springframework.dao.DataIntegrityViolationException): Could not execute JDBC batch update; SQL [insert into sectiondataelements (sectionid, sort_order, dataelementid) values (?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
Caused by (org.hibernate.exception.ConstraintViolationException): Could not execute JDBC batch update

Caused by (java.sql.BatchUpdateException): Batch entry 5 insert into sectiondataelements (sectionid, sort_order, dataelementid) values ('95790', '6', '3189') was aborted. Call getNextException to see the cause.







References