Results 1 to 10 of 10

Thread: Query Error in Lead List

  1. #1
    wesmon is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    12

    Default Query Error in Lead List

    I've searched the forums and several other people are having the same problem. None of those threads have been helped.

    If go to the lead list screen, sort the list by NAME, click on a name, we get the following error:

    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'

    If I sort the list by something other than Name, I can click on a name without a problem.

    This happened with 4.5.1 and with 4.5.1b

    I just upgraded to 4.5.1b in hopes that it would cure the problem. It did not.

    Sugar Open Source 4.5.1b
    MySql 4.1.21-standard-log
    PHP 5.0.5

    HELP!

    thanks
    Wes

  2. #2
    jnassi's Avatar
    jnassi is offline Sugar Team Member
    Join Date
    Apr 2005
    Posts
    455

    Default Re: Query Error in Lead List

    Quote Originally Posted by wesmon
    I've searched the forums and several other people are having the same problem. None of those threads have been helped.

    If go to the lead list screen, sort the list by NAME, click on a name, we get the following error:

    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'

    If I sort the list by something other than Name, I can click on a name without a problem.

    This happened with 4.5.1 and with 4.5.1b

    I just upgraded to 4.5.1b in hopes that it would cure the problem. It did not.

    Sugar Open Source 4.5.1b
    MySql 4.1.21-standard-log
    PHP 5.0.5

    HELP!

    thanks
    Wes
    Wes,

    Try doing a "Reset to Default Preferences" within the My Account screen, see if that clears up the problem. With a fresh install of Sugar 4.5.1b, the query is built correctly.
    Jason Nassi
    SugarExchange.com

  3. #3
    wesmon is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    12

    Default Re: Query Error in Lead List

    Jason,

    I just tried that and it did not work. Logged in as admin, My Account, clicked Reset to Default Preferences. Got logged out, logged back in, set time zone.

    Still didn't work. Strange thing is that this is happening on two of my installs for ALL users. Both are 4.5.1b. This was happening to both even with 4.5.1

    They are both hosted at the same place. The other commonality is that to get the lead list, I performed an "import" from a tab delimtted file.

    Here's another thing I noticed: once I click on the name and receive the error, the lead name shows up on the left as Last Viewed. Of course, if I click the lead name there, it comes up just fine.

    With that clue, which module do you think is creating the problem? (I'm a programmer, but not too familiar with PHP and the structure of the system, so if you point me in the right module, I can try and debug it).

    thanks
    Wes
    Last edited by wesmon; 2007-03-24 at 12:19 PM.

  4. #4
    wesmon is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    12

    Default Re: Query Error in Lead List

    Does anyone have any other ideas? Can I try coding around this?

    thanks
    Wes

  5. #5
    martin.huber@canoo.com is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    18

    Default Re: Query Error in Lead List

    Just to increase the weight on this issue: we have it too.

    We are using Version 4.5.1d (Build 1273) .

    Cheers,
    Martin

  6. #6
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Smile Re: Query Error in Lead List

    Hi Wes!

    Please post your vardefs.php file from modules/Leads/ folder so we may better help you.
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

  7. #7
    mrships is offline Junior Member
    Join Date
    Jun 2007
    Posts
    1

    Default Re: Query Error in Lead List

    I have the same problem in 4.1.5d.

    I also did an import of leads.

    In the chance it may help I'm posting vardefs.php file from modules/Leads/ folder as Petro Blagodir suggested...

    Regards,
    Chip
    Attached Files Attached Files

  8. #8
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Smile Re: Query Error in Lead List

    Hi All!

    Unfortunately i can say that vardefs.php is good.

    Probably you installed some patches or modules.

    Please let us know if so.
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

  9. #9
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Query Error in Lead List

    Post your

    modules/Leads/metadata/listviewdefs.php
    and
    custom/modules/Leads/metadata/listviewdefs.php if it exists.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  10. #10
    tdmalone is offline Junior Member
    Join Date
    May 2007
    Posts
    1

    Default Re: Query Error in Lead List

    We have exactly the same problem too. But leads were not imported, they have all been entered by hand, so we may be able to rule that out as the cause.

    To give a bit more information, after doing another re-ordering of the list, the link from the previous re-order starts working.

    Example:
    - I sort leads by name, and click on a name. It takes me to this link: /index.php?action=DetailView&module=Leads&record=f1 2c225d-bcc0-1774-10c4-466e1abeb109&offset=1&stamp=1181882296061427800
    - That page shows the error
    - I sort leads by name again, and click on the same name, it takes me to this link: /index.php?action=DetailView&module=Leads&record=f1 2c225d-bcc0-1774-10c4-466e1abeb109&offset=1&stamp=1181882356013053500
    - That page also shows me the error
    - I manually visit the link it took me to last time, and it now works

    The only difference between those two links is the 'stamp' variable. It seems that each new sort generates a new stamp value, and the newest one doesn't work - yet all the older ones do.

    I have attached /modules/Leads/metadata/listviewdefs.php. /custom/modules/Leads/metadata doesn't exist.
    Attached Files Attached Files

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. Error running count query for Lead List
    By kosmidis in forum Help
    Replies: 1
    Last Post: 2006-09-07, 11:55 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
  •