Results 1 to 2 of 2

Thread: Task Error on Contacts and Accounts

  1. #1
    matrixweb is offline Junior Member
    Join Date
    Oct 2009
    Posts
    1

    Default Task Error on Contacts and Accounts

    Hey, Everybody.
    I´ve been worked with the "Sugar" during a long time, but i´ve never seen an error like this.
    Well, every time I access the Accounts Module or Contacts Module it´s not listing the "Tasks" under.
    This is in Edit listview.
    The fields are showed normally, but the Tasks don´t.

    If everyone can help me. It would be very nice.

    Tks for you attention.

    The error showed...:

    Error retrieving Account list: Query Failed: ( SELECT tasks.id , tasks.name , tasks.status , CONCAT(IFNULL(contacts.first_name,''),' ',IFNULL(contacts.last_name,'')) contact_name , tasks.contact_id , contacts.assigned_user_id contact_name_owner , 'Contacts' contact_name_mod, tasks.date_due as date_start , jt1.user_name assigned_user_name , jt1.created_by assigned_user_name_owner , 'Users' assigned_user_name_mod, tasks.assigned_user_id , 'tasks' panel_name FROM tasks LEFT JOIN contacts contacts ON contacts.id= tasks.contact_id AND contacts.deleted=0 AND contacts.deleted=0 LEFT JOIN users jt1 ON jt1.id= tasks.assigned_user_id AND jt1.deleted=0 AND jt1.deleted=0 where ( tasks.parent_id= '6bafe9ec-b9a4-13cd-b6ba-4a7c4c94622a' AND tasks.parent_type='Accounts' AND tasks.deleted=0 AND (tasks.status='Not Started' OR tasks.status='In Progress' OR tasks.status='Pending Input')) AND tasks.deleted=0 ) UNION ALL ( SELECT meetings.id , meetings.name , meetings.status , ' ' contact_name_owner , ' ' contact_name_mod , meetings.date_start , jt0.user_name assigned_user_name , jt0.created_by assigned_user_name_owner , 'Users' assigned_user_name_mod, meetings.assigned_user_id , 'meetings' panel_name FROM meetings LEFT JOIN users jt0 ON jt0.id= meetings.assigned_user_id AND jt0.deleted=0 AND jt0.deleted=0 where ( meetings.parent_id= '6bafe9ec-b9a4-13cd-b6ba-4a7c4c94622a' AND meetings.parent_type='Accounts' AND meetings.deleted=0 AND (meetings.status='Planned')) AND meetings.deleted=0 ) UNION ALL ( SELECT calls.id , calls.name , calls.status , ' ' contact_name_owner , ' ' contact_name_mod , calls.date_start , jt0.user_name assigned_user_name , jt0.created_by assigned_user_name_owner , 'Users' assigned_user_name_mod, calls.assigned_user_id , 'calls' panel_name FROM calls LEFT JOIN users jt0 ON jt0.id= calls.assigned_user_id AND jt0.deleted=0 AND jt0.deleted=0 where ( calls.parent_id= '6bafe9ec-b9a4-13cd-b6ba-4a7c4c94622a' AND calls.parent_type='Accounts' AND calls.deleted=0 AND (calls.status='Planned')) AND calls.deleted=0 ) ORDER BY date_start desc LIMIT 0,10::MySQL error 1222: The used SELECT statements have a different number of columns

  2. #2
    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: Task Error on Contacts and Accounts

    Probably you had modified either the history or activity subpanel for some of the Activities modules.
    Explode this query and look for the query item containing a different number of columns.

    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.

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: 2009-06-03, 04:00 PM
  2. Replies: 1
    Last Post: 2009-02-05, 07:20 PM
  3. error in contacts, accounts, etc...
    By racetech in forum Help
    Replies: 1
    Last Post: 2006-01-27, 10:25 AM
  4. Error 500 when viewing contacts / accounts etc...
    By JBSM in forum General Discussion
    Replies: 2
    Last Post: 2005-10-06, 08:21 AM
  5. Error Importing Contacts & Accounts
    By BStoffel in forum Help
    Replies: 1
    Last Post: 2005-04-22, 05:10 AM

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
  •