case number being re-used

Hi we are using a slightly older version of SugarCRM 6.5.17 (Build 1220). We have an intermittent fault where a user emails, most times it creates a Case with a new Case number sometimes it doesn't create a Case other times it uses a pre-existing case number. I have grepped log file using 'cases_accounts':

/usr/share/sugarcrm/sugarcrm_12_03_18_3.log:Mon Dec  3 16:19:09 2018 [11369][1][ERROR] Unable to find relationship cases_accounts

/usr/share/sugarcrm/sugarcrm_12_03_18_3.log:Mon Dec  3 16:19:09 2018 [11369][1][FATAL] cases_accounts for cases_accounts failed to load

/usr/share/sugarcrm/sugarcrm_12_03_18_3.log:Mon Dec  3 16:19:09 2018 [11369][1][FATAL] Failed to load relationship cases_accounts while saving Cases

/usr/share/sugarcrm/sugarcrm_12_03_18_3.log:Mon Dec  3 16:19:09 2018 [11369][1][ERROR] Unable to find relationship cases_accounts

/usr/share/sugarcrm/sugarcrm_12_03_18_3.log:Mon Dec  3 16:19:09 2018 [11369][1][FATAL] cases_acco7636ccounts_idb for cases_accounts failed to load

/usr/share/sugarcrm/sugarcrm_12_03_18_3.log:Mon Dec  3 16:19:09 2018 [11369][1][ERROR] Unable to find relationship cases_accounts

/usr/share/sugarcrm/sugarcrm_12_03_18_3.log:Mon Dec  3 16:19:09 2018 [11369][1][FATAL] cases_accounts for cases_accounts failed to load

/usr/share/sugarcrm/sugarcrm_12_03_18_3.log:Mon Dec  3 16:19:09 2018 [11369][1][FATAL] Failed to load relationship cases_accounts while saving Cases

We have tried rebuilding the relationships but haven't done a repair as yet and prefer not to.

Have tested the email connection and the send test email works fine.

 

We are looking at upgrading 1st half 2019 but would like to try and resolve this before hand.

Any information on this would be fantastic!

Cheers,

Steve

Parents
  • Hi Stevan Goodchild 

    Consider executing from the Repair page the following actions:
    Rebuild Relationships

    Quick Repair and Rebuild

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
  • case_number is an autoincrement field of the database. When such a number is "reused" there must be a defect in the definition of the cases database table.

    Lookup the maximum value from the table and set the AUTO_INCREMENT value of the table to the next free number.

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

  • I checked the number and that appears to be correct. When I did a test email it did create a case number with the number I was expecting. 

Reply Children