Results 1 to 10 of 10

Thread: How do I import records from 4.5.1 to 5.0.0e?

  1. #1
    bstonehill is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Atlanta, GA
    Posts
    98

    Default How do I import records from 4.5.1 to 5.0.0e?

    It appears I may be having some issues with 5.0.0e because I upgraded from 4.5.1. I don't have the same issues in a new 5.0.0e installation. I'm moving sugar and the database to a new server and doing a 5.0.0e upgrade at the same time. When I try to import my data into a new 5.0.0e installation I get this message any time I try to login to sugar, "Sugar CRM 5.0.0e Files May Only Be Used With A Sugar CRM 5.0.0 Database". It imports fine into a new 4.5.1 installation though.

    Is there any way to import data from a 4.5.1 database?

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: How do I import records from 4.5.1 to 5.0.0e?

    Why not just point your new install to your upgraded database? Or do you think the database is part of the issue?

  3. #3
    bstonehill is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Atlanta, GA
    Posts
    98

    Default Re: How do I import records from 4.5.1 to 5.0.0e?

    Well, i'm moving the database and everything to a new server. So I exported all the data from the mysql database on the 4.5.1 server, installed a fresh copy of 5.0.0e on the new server, and then imported the data from the 4.5.1 database into the new 5.0.0e database. After importing the data I get that message that 5.0.0e is not compatible with the database. I know some of the tables have changed a bit in 5.0 and my guess is that during the import it's overwriting the new tables with the old ones. I am hoping there is a way to work around this.

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: How do I import records from 4.5.1 to 5.0.0e?

    From your description of the problem, it sounds like your import included all the tables.

    In which case, take a look at the Config table and find the record where the name column equals "sugar_version"

    Update that record to reflect as 5.0.0 and then try to login to Sugar. If you are able to login, immediately access the admin control panel and run all rebuild operations.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  5. #5
    bstonehill is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Atlanta, GA
    Posts
    98

    Default Re: How do I import records from 4.5.1 to 5.0.0e?

    Thanks, that got rid of the incompatibility message and let me login, but as soon as I do I get an sql error.

    Query Failed:SELECT tracker.* from tracker WHERE user_id = '1' AND visible = 1 ORDER BY id DESC LIMIT 0,10::MySQL error 1054: Unknown column 'visible' in 'where clause'

    I'm guessing this is due to the differences between 5.0 and 4.5.1 tables and it's missing something it needs.

    Any other suggestions?

    Thanks!

  6. #6
    bstonehill is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Atlanta, GA
    Posts
    98

    Default Re: How do I import records from 4.5.1 to 5.0.0e?

    Okay, I had to manually add 3 fields to the tracker table and that SEEMS to have cleared it up. I am concerned though because I had to guess what the field types were supposed to be and because I'm not sure if I'm going to run into more issues like this once it's put into production. Does anyone know if there are any other differences in the tables? Should I be concerned about this?

    Thanks

  7. #7
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: How do I import records from 4.5.1 to 5.0.0e?

    Hi,

    I don't quite understand why you didn't upgrade the "normal" way. However, have a look at the handling of email addresses. There is a substantial difference.
    And: if you say "importing" - do you mean a dump restore or using the Sugar import function? The former will definitely NOT work.

    rgds
    rl
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  8. #8
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: How do I import records from 4.5.1 to 5.0.0e?

    Quote Originally Posted by bstonehill
    Okay, I had to manually add 3 fields to the tracker table and that SEEMS to have cleared it up. I am concerned though because I had to guess what the field types were supposed to be and because I'm not sure if I'm going to run into more issues like this once it's put into production. Does anyone know if there are any other differences in the tables? Should I be concerned about this?

    Thanks
    Yes, there are other differences, hence the point about the rebuild in my prior post.

    And to Roblaus' point, export/import is not the recommended way of performing an upgrade, precisely for these reasons.

    What led you to do an import versus resolving the upgrade issues (assuming you were experiencing some)?
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  9. #9
    bstonehill is offline Sugar Community Member
    Join Date
    Nov 2006
    Location
    Atlanta, GA
    Posts
    98

    Default Re: How do I import records from 4.5.1 to 5.0.0e?

    The problem I was having with the upgrade is that I can't get my custom module subpanels to show up under accounts. They did show up on my development server which was a fresh 5.0 install but not on my production server which was an upgrade from 4.5.1. I've followed every instruction I could find about adding subpanels but none of them worked. I did create the relationship in module builder before exporting the module. Since the only difference between them is that one is a fresh 5.0 and one is an upgrade I figured that had to be the reason why.

    I am continuing to get mysql errors on this installation. I've been fixing them as I came across them but when I did a repair I got a whole bunch of errors so I'm guessing I'm fighting a losing battle here.

    You said that I went about importing everything the wrong way? I didn't export any of the sugar files or settings. I just exported the mysql database as an sql file and then imported into the new one. Should I be doing it differently? Can I import just the data and any custom fields without overwriting the original tables?

  10. #10
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: How do I import records from 4.5.1 to 5.0.0e?

    As I said - between versions there are often schema changes. You can't just use an old DB with a new file system. Please use the recommended upgrade routines. See also the installation & upgrade forum.

    rgds
    rl
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

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. Replies: 1
    Last Post: 2008-10-13, 05:55 PM
  3. Replies: 7
    Last Post: 2008-04-21, 11:44 PM
  4. Import call records
    By christineeff in forum General Discussion
    Replies: 2
    Last Post: 2007-08-14, 09:17 AM
  5. Replies: 1
    Last Post: 2006-07-31, 11:02 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
  •