Integrity constraint error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • donoss
    Junior Member
    • Apr 2017
    • 25

    Integrity constraint error

    Hi,

    I've created a new entity and it only lets me create one record. If I try to create a second one I get a 500 error. The log states the following:

    [2020-05-22 19:31:24] Espo.ERROR: (23000) SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '5' for key 'PRIMARY'; POST /crm/api/v1/Subscription; line: 983, file: /public_html/crm/application/Espo/ORM/DB/Mapper.php [] []

    It appears it is always trying to submit '5' as the id.

    Any help will be much appreciated.

    Thanks

    Andy

  • Maximus
    Senior Member
    • Nov 2018
    • 2731

    #2
    Hi,
    How do you try to create the new record? I mean manually via the EspoCRM UI or through API (integration request)?

    Comment

    Working...