Results 1 to 8 of 8

Thread: Error Retrieving lead list

  1. #1
    cyberitpros is offline Member
    Join Date
    Dec 2007
    Posts
    5

    Default Error Retrieving lead list

    Hello,

    I am getting the following error when selecting a lead from my lead module ...Error retrieving Lead list: Query Failed:SELECT leads.*, users.user_name assigned_user_name , leads_cstm.* FROM leads LEFT JOIN users ON leads.assigned_user_id=users.id LEFT JOIN leads_cstm ON leads.id = leads_cstm.id_c where leads.deleted=0 ORDER BY name ASC LIMIT 19,1::MySQL error 1054: Unknown column 'name' in 'order clause'... Any suggestions? Any help would be greatly appreciated.

  2. #2
    SamuelAugy is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Paris (France)
    Posts
    238

    Default Re: Error Retrieving lead list

    There is no column called "name" in leads table.
    How do you try to retrieve.

    Look your listviewdefs.php files (in modules/leads/metadata and custom/modules/Leads/metadata) . You must have :

    PHP Code:
    'NAME' => array(
            
    'width' => '30',
            
    'label' => 'LBL_LIST_NAME',
            
    'link' => true,
            
    'default' => true,
            
    'related_fields' => array('first_name''last_name''salutation')), 
    or


    PHP Code:
    'LAST_NAME' => 
      array (
        
    'width' => 30,
        
    'label' => 'LBL_LAST_NAME',
        
    'link' => true,
        
    'default' => true,
      ), 

  3. #3
    cyberitpros is offline Member
    Join Date
    Dec 2007
    Posts
    5

    Default Re: Error Retrieving lead list

    SamuelAugy,

    This is what I have on my listviewdefs.php...

    'ASSIGNED_USER_NAME' => array(
    'width' => '10',
    'label' => 'LBL_LIST_ASSIGNED_USER',
    'default' => true),
    'MODIFIED_USER_NAME' => array(
    'width' => '10',
    'label' => 'LBL_MODIFIED')

    What would i need to change?

    Thanks,

    Carlos

  4. #4
    globalimage is offline Junior Member
    Join Date
    Oct 2007
    Posts
    3

    Default Re: Error Retrieving lead list

    Have the same problem, once i click on specific lead

    Error retrieving Lead list: Query Failed:SELECT leads.*, users.user_name assigned_user_name FROM leads LEFT JOIN users ON leads.assigned_user_id=users.id where leads.deleted=0 ORDER BY name ASC LIMIT 0,1::MySQL error 1054: Unknown column 'name' in 'order clause'

    please help

  5. #5
    HolmesA's Avatar
    HolmesA is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    109

    Default Re: Error Retrieving lead list

    What version of Sugar do you use?
    Did you perform any manual changes to Leads module? Or maybe using the Studio.
    Last edited by HolmesA; 2008-01-05 at 09:07 AM.

  6. #6
    globalimage is offline Junior Member
    Join Date
    Oct 2007
    Posts
    3

    Default Re: Error Retrieving lead list

    Version 4.5.1h (Build 1104)

    I have importing leads form CSV. There were some peroblems, and Sugar was not able to complete the opration. It stoped at the screen; Import Step 3: Confirm Fields and Import Import Started. No progesss no action.

  7. #7
    philipmartinjones is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    20

    Default This is a known bug (but the fix...)

    Hi,

    I searched the net for this exact same error message and have read that it relates to a known bug in the Leads module.

    The bug is documented here: http://www.sugarcrm.com/crm/?option=...4-465a7fa84963

    However the fix they provide isn't exactly easy to follow, so here is how I got it working for me:

    1. Find the file: modules/Leads/metadata/listviewdefs.php (in our case this was in the public_html directory)
    2. Make a backup copy (just in case)
    3. Open the file in your preferred editor (eg. notepad)
    4. Fairly near to the top you'll find the text:

    'NAME' => array(
    'width' => '30',
    'label' => 'LBL_LIST_NAME',

    5. Insert the missing definition so it now looks like:

    'NAME' => array(
    'orderBy' => 'last_name',
    'width' => '30',
    'label' => 'LBL_LIST_NAME',

    6. I found that to make it work I needed to wait a few moments, log out of sugar, close the browser and go back in again. Then it all worked fine again.

    Hope this helps.

    Plus, credit where it's due: Here's the site where I found discussion of the issue (amongst other things) http://www.stonemind.net/blog/2007/1...-and-sugarcrm/

  8. #8
    globalimage is offline Junior Member
    Join Date
    Oct 2007
    Posts
    3

    Thumbs up Re: Error Retrieving lead list

    It worked Thank you

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Create target list for all contacts or lead source
    By jpletka in forum Marketing/Campaign Management
    Replies: 44
    Last Post: 2010-12-09, 10:59 AM
  2. edited lead list view -- lost links to lead details
    By pjw28 in forum General Discussion
    Replies: 1
    Last Post: 2009-03-19, 04:14 PM
  3. From lead to order
    By george_bbch in forum Feature Requests
    Replies: 0
    Last Post: 2006-09-26, 02:02 PM
  4. Studio and Lead List problem
    By mmgareth in forum Help
    Replies: 1
    Last Post: 2006-07-03, 03:35 PM
  5. Replies: 0
    Last Post: 2005-10-16, 02:55 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
  •