Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Mysql error 1054, unknown column

  1. #1
    lmsservices is offline Member
    Join Date
    Feb 2009
    Posts
    11

    Default Mysql error 1054, unknown column

    I have modified the notes tab and the history subpanel to show the custom fields I need. All is well until I create a new note and then I get the error message below while trying to view the note in the history subpanel of accounts:

    Error retrieving Account list: Query Failed SELECT tasks.id , jt0.name accountname_c , tasks.date_entered , tasks.created_by , ' ' filename , tasks.assigned_user_id , 'tasks' panel_name FROM tasks LEFT JOIN accounts jt0 ON tasks_cstm.account_id_c = jt0.id AND jt0.deleted=0 where ( tasks.parent_id= 'af5e70ea-ebd0-c510-8ec4-4a79dc472cbf' AND tasks.parent_type='Accounts' AND tasks.deleted=0 AND (tasks.status='Completed' OR tasks.status='Deferred')) AND tasks.deleted=0 ) UNION ALL ( SELECT meetings.id , jt0.name accountname_c , ' ' contact_name_owner , ' ' contact_name_mod , meetings.date_entered , meetings.created_by , ' ' filename , meetings.assigned_user_id , 'meetings' panel_name FROM meetings LEFT JOIN accounts jt0 ON meetings_cstm.account_id_c = jt0.id AND jt0.deleted=0 where ( meetings.parent_id= 'af5e70ea-ebd0-c510-8ec4-4a79dc472cbf' AND meetings.parent_type='Accounts' AND meetings.deleted=0 AND (meetings.status='Held' OR meetings.status='Not Held')) AND meetings.deleted=0 ) UNION ALL ( SELECT calls.id , jt0.name accountname_c , ' ' contact_name_owner , ' ' contact_name_mod , calls.date_entered , calls.created_by , ' ' filename , calls.assigned_user_id , 'calls' panel_name FROM calls LEFT JOIN accounts jt0 ON calls_cstm.account_id_c = jt0.id AND jt0.deleted=0 where ( calls.parent_id= 'af5e70ea-ebd0-c510-8ec4-4a79dc472cbf' AND calls.parent_type='Accounts' AND calls.deleted=0 AND (calls.status='Held' OR calls.status='Not Held')) AND calls.deleted=0 ) UNION ALL ( SELECT notes.id , jt0.name accountname_c , notes.date_entered , notes.created_by , ' ' assigned_user_owner , ' ' assigned_user_mod , notes.filename , 'notes' panel_name FROM notes LEFT JOIN accounts jt0 ON notes_cstm.account_id_c = jt0.id AND jt0.deleted=0 where ( notes.parent_id= 'af5e70ea-ebd0-c510-8ec4-4a79dc472cbf' AND notes.parent_type='Accounts' AND notes.deleted=0) AND notes.deleted=0 ) ORDER BY date_entered desc LIMIT 0,10::MySQL error 1054: Unknown column 'tasks_cstm.account_id_c' in 'on clause'

    The field its refrencing has been deleted. I ran a search and onlyl the log file is showing that field name. I don't understand why I am still getting this error message.

    any ideas?
    Last edited by lmsservices; 2009-08-07 at 05:25 PM. Reason: additional information

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Mysql error 1054, unknown column

    Have you tried performing a rebuild/repair on your system via Admin > Repair?
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    lmsservices is offline Member
    Join Date
    Feb 2009
    Posts
    11

    Default Re: Mysql error 1054, unknown column

    I have tried the rebuld/repair. Same error message

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Mysql error 1054, unknown column

    Did you add fields to the tasks module at some point? Is the account_id_c field still listed as one of the custom fields for the Tasks module within studio?
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  5. #5
    lmsservices is offline Member
    Join Date
    Feb 2009
    Posts
    11

    Default Re: Mysql error 1054, unknown column

    I did add the field, but I have since deleted it. After I deleted I ran a rebuild/repair. Same Error message.

  6. #6
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Mysql error 1054, unknown column

    Ok, that's kind of what I suspected as this error usually comes up when someone has been adding/deleting fields.

    Have you tried clearing the <sugar>/cache/modules/Tasks directory?
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  7. #7
    lmsservices is offline Member
    Join Date
    Feb 2009
    Posts
    11

    Default Re: Mysql error 1054, unknown column

    I tired that and then a rebuild/repair. same error. I'm racking my brain here. I don't know why it only gives this error message when a note is created and saved.

  8. #8
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Mysql error 1054, unknown column

    Check the fields_meta_data table to see if the field definition is still there. If it is, delete the correponsding record and then rebuild.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  9. #9
    lmsservices is offline Member
    Join Date
    Feb 2009
    Posts
    11

    Default Re: Mysql error 1054, unknown column

    sorry. I'm not familiar with that. Can you guide me?

  10. #10
    lmsservices is offline Member
    Join Date
    Feb 2009
    Posts
    11

    Default Re: Mysql error 1054, unknown column

    nevermind. I found the table in the db. working on it now.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2009-06-15, 05:12 PM
  2. Replies: 1
    Last Post: 2009-03-31, 06:50 PM
  3. MySQL error 1054: Unknown column 'user' HELP!
    By tj@estreet.com in forum Help
    Replies: 2
    Last Post: 2007-06-27, 05:44 AM
  4. Replies: 3
    Last Post: 2006-01-12, 11:41 AM
  5. Replies: 5
    Last Post: 2005-09-12, 10:49 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
  •