I’m running SuiteCRM v7.1.4 and some of my users have reported to me that whenever they create cases they are unable to go back and view them. So I decided to check this out and it turns out that even though the activity streams shows that a case was created, it wasn’t in fact so. While attempting to save a test case I got the following error:
Database failure. Please refer to sugarcrm.log for details.
So I got curious and decided to checkout the log and I found the following error message as a result of my attempt to create the test case:
Mon Feb 9 14:19:44 2015 [3081][f0001cb5-be06-aa26-1ce0-537f88383579][FATAL] Error inserting into table: cases: Query Failed: INSERT INTO cases (id,name,date_entered,date_modified,modified_user_id,created_by,description,deleted,assigned_user_id,type,status,priority,resolution,account_id,state)
VALUES ('7004ee6c-a6a5-304a-64f7-54d9082d18ae','Test Case','2015-02-09 19:19:43','2015-02-09 19:19:43','f0001cb5-be06-aa26-1ce0-537f88383579','f0001cb5-be06-aa26-1ce0-537f88383579','Testing',0,'f0001cb5-be06-aa26-1ce0-537f88383579','Billing_Issue','Open_New','P1','','8b42c284-41b3-13ec-10a7-54d3c738f0cd','Open'): MySQL error 1062: Duplicate entry '0' for key 'casesnumk'
I also noticed that the later part of the error (MySQL error 1062: Duplicate entry ‘0’ for key ‘casesnumk’) was consistent in all the other INSERT statements that were a result of my users’ previous attempts at creating cases. So, how can I resolve this problem? It appears SuiteCRM is trying to use the same key when creating new cases - or am I reading this wrong?
Your help would be greatly appreciated, thanks.