Announcement

Collapse
No announcement yet.

Integrity constraint error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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


  • #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...
    X