Results 1 to 3 of 3

Thread: Cases: SQL Error When Viewing a Case

  1. #1
    leemoney24 is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    56

    Default Cases: SQL Error When Viewing a Case

    I've had no problems like this until recently. I was away for a week, and when I got back i noticed this.

    When i access a case from anywhere other than an individuals/contacts list...i get this error:

    Error retrieving Case list: Query Failed:SELECT cases.*, accounts.name as account_name, accounts.name as account_name1, accounts.assigned_user_id account_name1_owner, users.user_name as assigned_user_name FROM cases LEFT JOIN users ON cases.assigned_user_id=users.id LEFT JOIN accounts ON cases.account_id=accounts.id where cases.status in ('New','Assigned','Pending Input') and cases.assigned_user_id in ('1','1ae5a251-139a-e05c-edb1-43df724fdf7e') AND cases.deleted=0 AND accounts.deleted=0 ORDER BY account_name ASC LIMIT 12,1::MySQL error 1052: Column 'account_name' in order clause is ambiguous

    I can access the case information fine from a contacts case list. If i try to access the case from any other means, (i.e. dashboard, all cases list, etc)...i get this same error for all cases.

    Any help would be appreciated. Today i installed the patch from Version 4.5.1c to Version 4.5.1d...to see if that would fix my problem...wishful thinking.

  2. #2
    leemoney24 is offline Sugar Community Member
    Join Date
    Feb 2006
    Posts
    56

    Default Re: Cases: SQL Error When Viewing a Case

    FIXED!!!!!

    I uploaded all the source files for the /modules/Cases and it fixed the problem. Must have had a corrupt/missing/rouge file out there .

    I figured i'd post the fix in case this might help someone else later in life.

  3. #3
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Cases: SQL Error When Viewing a Case

    Hi leemoney24, thanks for the update.

    I've also heard that Rebuild Relationships (via Admin) could help in this situation.

    Hopefully this can help in the future.

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2008-02-22, 04:25 PM
  2. Sugar/Mambo - portal cases invisible in Sugar
    By mshallop in forum Web Self Service Portal
    Replies: 5
    Last Post: 2007-02-14, 03:10 PM
  3. Replies: 1
    Last Post: 2006-11-16, 05:07 PM
  4. Sorting by a Custom Field in Cases (OS)
    By neonz2005 in forum Help
    Replies: 1
    Last Post: 2005-08-26, 01: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
  •