Results 1 to 6 of 6

Thread: Importing problem mapping "Account Names" to Leads - Sugar 5.00b

  1. #1
    fedir is offline Junior Member
    Join Date
    Feb 2008
    Posts
    2

    Smile Importing problem mapping "Account Names" to Leads - Sugar 5.00b

    Hi there,
    I found a very strange bug, which I could not understand by simple logic.
    I'm making mapping of my leads and during import process blocks, import is not possible, without any message of error. I made mapping of Account Name to Title and it works, but I want to make direct mapping to Account Names, because it's much more easy to convert Leads to Accounts after.
    Why I couldn't import my Accounts Names directly to the field Account Name's field in the leads?
    Thanks for Your answers and advices.

    » Operating system type and version Debian 4
    » Sugar Suite version 5.00b
    » Webserver type and version Apache 2
    » PHP version PHP 5
    » MySQL server version 5.045

  2. #2
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Importing problem mapping "Account Names" to Leads - Sugar 5.00b

    There is a bug in 5.0.0 around the field definition for the Account Name vardef. See bugs 19293 and 18988 which are symptoms of the same problem.

    I will work with the dev team to get this addressed in the next patch. In the meantime, the workaround is the following:

    Open the ./modules/Leads/vardefs.php file for editing.

    1. Replace the following array:
    'account_name' =>
    array (
    'name' => 'account_name',
    'rname' => 'name',
    'id_name' => 'account_id',
    'vname' => 'LBL_ACCOUNT_NAME',
    'join_name'=>'accounts',
    'type' => 'relate',
    'link' => 'accounts',
    'table' => 'accounts',
    'isnull' => 'true',
    'module' => 'Accounts',
    'dbType' => 'varchar',
    'len' => '255',
    ),

    with:
    'account_name' =>
    array (
    'name' => 'account_name',
    'vname' => 'LBL_ACCOUNT_NAME',
    'type' => 'varchar',
    'len' => '255',
    'unified_search' => true,
    'comment' => 'Account name for lead'
    ),

    2. Save the file.

    3. Rebuild your module relationships by click on Admin->Repair->Rebuild Relationships. Note: Updated post with this step.

    4. Rebuild your SugarCRM cache by going to Admin->Repair->Quick Repair and Rebuild and clicking Repair. Note: Updated post with this step.

    5. Refresh your SugarCRM connection by logging out and back in.
    Last edited by clint; 2008-03-04 at 03:47 PM. Reason: Adding repair step and rebuild relationships steps.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  3. #3
    fedir is offline Junior Member
    Join Date
    Feb 2008
    Posts
    2

    Thumbs up Re: Importing problem mapping "Account Names" to Leads - Sugar 5.00b

    Thank You a lot, Clint.
    I think, it's the most professional and complete answer I had ever receive on OpenSource systems.

    The solution worked fine, just in my case I made "fast repair" on the admin page to make it work.

    Thanks again,
    Fedir, Lyon

  4. #4
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Importing problem mapping "Account Names" to Leads - Sugar 5.00b

    Also for anybody else, be sure that you are on 5.0.0b. There is a list view bug in 5.0.0a that has many of the same symptoms around issues with export, mass update and list view delete. Between patch B and the code changes above, your Leads list view actions should work fine.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  5. #5
    ryanweeks is offline Junior Member
    Join Date
    Apr 2008
    Posts
    1

    Default Re: Importing problem mapping "Account Names" to Leads - Sugar 5.00b

    Got this after applying fix:

    Version 5.0.0b (Build 3150)

    after applying per instructions, there is a general failure on log in:

    Query Failed: AND users.id = '1'::MySQL error 1064:

    log shows:

    Fri Apr 4 03:28:16 2008,589 [2607] FATAL SugarCRM - Error fetching relationship from cache contacts_users
    Fri Apr 4 03:28:16 2008,592 [2607] FATAL SugarCRM - MySQL error 1064:


    Had to restore db and cache.

    Any ideas?

  6. #6
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Importing problem mapping "Account Names" to Leads - Sugar 5.00b

    Quote Originally Posted by ryanweeks
    Got this after applying fix:

    Version 5.0.0b (Build 3150)

    after applying per instructions, there is a general failure on log in:

    Query Failed: AND users.id = '1'::MySQL error 1064:

    log shows:

    Fri Apr 4 03:28:16 2008,589 [2607] FATAL SugarCRM - Error fetching relationship from cache contacts_users
    Fri Apr 4 03:28:16 2008,592 [2607] FATAL SugarCRM - MySQL error 1064:


    Had to restore db and cache.

    Any ideas?
    Looks like you missed the Rebuild Relationships step.

    Quote Originally Posted by clint
    Rebuild your module relationships by click on Admin->Repair->Rebuild Relationships. Note: Updated post with this step.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. HELP - Act import (field mapping)
    By smelamed in forum Help
    Replies: 32
    Last Post: 2010-12-15, 05:39 PM
  2. Sugar Open Source 3.5.0c Available for Download
    By jnassi in forum Announcements
    Replies: 0
    Last Post: 2005-08-27, 08:21 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
  •