Results 1 to 3 of 3

Thread: Listview ROW_NUMBER() error

  1. #1
    MJBVrijmoed is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    20

    Default Listview ROW_NUMBER() error

    Hi,

    in accounts when i use the next page button i receive the following error:

    SQL Error : The column 'assigned_user_id' was specified multiple times for 'a'.

    in sugarcrm.log i see this error

    FATAL SugarCRM - The column 'assigned_user_id' was specified multiple times for 'a'.: SELECT TOP 21 * FROM
    (
    SELECT ROW_NUMBER() OVER (ORDER BY accounts.id) AS row_number, accounts.id , accounts_cstm.*, accounts.name , accounts.account_type , accounts.phone_office , accounts.assigned_user_id , accounts.assigned_user_id FROM accounts LEFT JOIN accounts_cstm ON accounts.id = accounts_cstm.id_c where accounts.deleted=0
    ) AS a
    WHERE row_number > 20
    02/19/08 21:58:09,513 [2344] FATAL SugarCRM - SQL Server error: The column 'assigned_user_id' was specified multiple times for 'a'.

    When I remove the assigned_user_id from the listview it's working correctly.

    Can anybody help me???

    Windows 2003 Standard
    SugarCRM OS 5
    IIS 6
    PHP 5.2.5
    SQL Server 2005 Workgroup
    Last edited by MJBVrijmoed; 2008-02-19 at 08:17 PM.

  2. #2
    jungler is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    68

    Default Re: Listview ROW_NUMBER() error

    In the /custom/modules/accounts/metadata/listviewdefs.php, try to comment out the following in the 'ASSIGNED_USER_NAME' array and rebuild

    /* 'related_fields' =>
    array (
    0 => 'assigned_user_id',
    ),
    */

    Although I dont know why but it works for me anyway. Good luck

  3. #3
    MJBVrijmoed is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    20

    Default Re: Listview ROW_NUMBER() error

    Jungler,

    that did the trick. You are officialy my hero of the day.

    Thanx again!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 19
    Last Post: 2008-04-11, 05:41 PM
  2. Replies: 10
    Last Post: 2007-09-20, 03:51 AM
  3. Replies: 0
    Last Post: 2007-08-08, 02:47 PM
  4. SQL Error : 'ROW_NUMBER' is not a recognized function name.
    By mhoppes in forum Installation and Upgrade Help
    Replies: 16
    Last Post: 2007-08-06, 03:58 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
  •