Template-User defined report is not working as expected

Description

Go to Admin>>Template
>> Create a template, for example loan template by selecting entity as loan.
>> Select required parameters and define the template.
>> Click on submit button.

Existing behavior: On clicking on submit button, it doesn't get submitted.
Expected: Template should get submitted and should get created.

Developer error message:-
{"timestamp":1446099935791,"status":500,"error":"Internal Server Error","exception":"org.springframework
.dao.DataIntegrityViolationException","message":"could not execute batch; SQL [update m_template set
entity=?, name=?, text=?, type=? where id=?]; constraint [null]; nested exception is org.hibernate.exception
.ConstraintViolationException: could not execute batch"}

Environment

None

Status

Assignee

SSN

Reporter

Sangamesh Nadagoudar

Labels

None

Implementation Priority

None

URL

None

Story Points

None

Team

Core

Scheduled For

None

50% Estimate

None

90% Estimate

None

Deployment

None

Epic

None

Request Type

None

Requestor

None

Number of Support Tickets

None

Customer

None

Notify

Sangamesh Nadagoudar

productboard URL

None

Fix versions

Priority

Minor