Results 1 to 4 of 4

Thread: Cases can not be saved v. 6.1.2

  1. #1
    vuohe is offline Senior Member
    Join Date
    Jun 2010
    Location
    Tampere Finland
    Posts
    23

    Default Cases can not be saved v. 6.1.2

    Hi!

    I have a problem on creating cases. When trying to create case there is some kind of database failure and I don't know what to do but post the log for this so if anyone smarter than me can lead me to right track?

    Log for the mentioned error:

    Tue Feb 15 11:35:21 2011 [2747][1][FATAL] Query Failed:
    INSERT into cases set id='5ac19cb0-bbcb-af21-edc6-4d5a48871100', name='Testi', date_entered='2011-02-15 09:35:21', date_modified='2011-02-15 09:35:21', modified_user_id='1', created_by='1', description=null, deleted='0', assigned_user_id='1', type='Product', status='Assigned', priority='P2', resolution=null, account_id='e9140d54-3b36-1361-be0a-4d53c302bb5a':
    MySQL error 1062: Duplicate entry '0' for key 'casesnumk'

  2. #2
    vuohe is offline Senior Member
    Join Date
    Jun 2010
    Location
    Tampere Finland
    Posts
    23

    Default Re: Cases can not be saved v. 6.1.2

    I fount the problem, there is a case number -field missing in the case -form and therefore sugar tries to save null or zero value to database. However in the database this field is defined so that its not allowed to be empty and therefore saving fails.

    Which do you think is the correct way to fix the problem. To set cases_num field in the database to autoincrement or try to add related field to cases -form?

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Cases can not be saved v. 6.1.2

    It seems to be an issue on sequence at cases table. This sequence manage the case_number, which is an auto increment number.
    Accomplish these tasks:
    Repair cases table according to this doc.
    Go to Admin -> Repair -> Repair Database

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    vuohe is offline Senior Member
    Join Date
    Jun 2010
    Location
    Tampere Finland
    Posts
    23

    Default Re: Cases can not be saved v. 6.1.2

    Thank You very much! This helped to fix the problem !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. List only open Cases in Cases module
    By ungod in forum Developer Help
    Replies: 2
    Last Post: 2009-05-22, 09:27 AM
  2. Replies: 0
    Last Post: 2008-11-03, 08:33 AM
  3. Replies: 6
    Last Post: 2008-07-10, 04:18 PM
  4. Replies: 5
    Last Post: 2006-06-01, 02:18 PM
  5. Mambo Integration:Cases not being saved
    By m12white in forum Help
    Replies: 0
    Last Post: 2005-05-05, 10:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •