Results 1 to 2 of 2

Thread: Mass Update Error: MySQL error 1054: Unknown column 'jt1.name' in 'where clause'

  1. #1
    lateefkhan is offline Member
    Join Date
    Sep 2008
    Posts
    6

    Default Mass Update Error: MySQL error 1054: Unknown column 'jt1.name' in 'where clause'

    Hi,
    I have upgraded my SugarCRM from 5.0 (Build 3098) to Build 3391. Now when i want to import contacts including approx 800 leads, it gives me the following error:

    Query Failed:SELECT leads.*, email_addresses.email_address, users.user_name assigned_user_name , leads_cstm.* FROM leads LEFT JOIN users ON leads.assigned_user_id=users.id LEFT JOIN email_addr_bean_rel on leads.id = email_addr_bean_rel.bean_id and email_addr_bean_rel.bean_module='Leads' and email_addr_bean_rel.deleted = 0 and email_addr_bean_rel.primary_address=1 LEFT JOIN email_addresses on email_addresses.id = email_addr_bean_rel.email_address_id LEFT JOIN leads_cstm ON leads.id = leads_cstm.id_c where (((leads.assigned_user_id in ('3c53c50a-a35a-fe5d-fe70-486b457818da') ) AND ( leads.status in ('New') ) AND ( jt1.name like 'education %')) AND leads.deleted=0) AND leads.deleted=0 ::MySQL error 1054: Unknown column 'jt1.name' in 'where clause'

    when i try to update the leads in 20 20 sets its don without error.
    I tried to fix this issue, i could not find jt1.name, i think it is a linked table (custom table). Any one could help me please

  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: Mass Update Error: MySQL error 1054: Unknown column 'jt1.name' in 'where clause'

    Hi lateefkhan

    It seems the Contacts vardefs had been corrupted.
    Copy the Contacts vardefs.php from a clean sugar installation (exactly the same version) and run the Quick Repair and Rebuild from Admin -> Repair

    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. Mass Update
    By jmcalderond in forum General Discussion
    Replies: 12
    Last Post: 2008-08-05, 09:39 PM
  2. Manually drop scheme (5.0 upgrade) ?
    By niallhannon in forum Installation and Upgrade Help
    Replies: 1
    Last Post: 2008-01-07, 05:41 PM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 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
  •