Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32
  1. #1
    Join Date
    Nov 2007
    Posts
    12
    Plugin Contributions
    0

    Default Problem with databse transfer oscommerce to zencart

    Hi,

    I am moving a database from OScommerce to Zencart.
    I have moved all the categories OK.
    I have moved all the product structure OK.
    BUT when I try to import the products I get the following error message:

    Error
    SQL query:

    --
    -- Database: `mydatabase_name`
    --
    --
    -- Dumping data for table `products`
    --
    INSERT INTO `products`
    VALUES ( 1, 33, '228', 'products/1.jpg', 'products/1.jpg', 'products/1.jpg', '', '', '', '', '', '', '', '', '', '', '', '', 2.8500, NULL , '2007-12-20 23:08:16', NULL , 1.00, 1, 0, NULL , 1, 0, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'G,0', 7, '', '', '', '', 0.00, 2288, 2.85, '0' ) ;



    MySQL said:

    #1136 - Column count doesn't match value count at row 1

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Problem with databse transfer oscommerce to zencart

    This is telling you that osCommerce and Zen Cart don't have the same table structure for products.

    One or both may have extra fields added since they split, and the osCommerce from which you are transferring may have mods that have added extra fields.

    Have you compared the products tables in both to see what differences there are?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Nov 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Problem with databse transfer oscommerce to zencart

    I have already added all tables into zencart that existed in the oscommerce database. There are now more tables in the zencart than in the oscommerce.

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Problem with databse transfer oscommerce to zencart

    The issue isn't about adding tables, it's that the products table in Zen Cart appears to be a different shape to that for the osCommerce database from which you are converting.

    This is getting highlighted because you have adopted a high risk approach to conversion, namely dumping each osCommerce row into a Zen Cart row in the hope that the fields will match, rather than mapping the fields so that you know that data is being taken from osCommerce and placed into the right field in Zen Cart.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Nov 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Problem with databse transfer oscommerce to zencart

    Do you have any suggestions how I can rectify this and get all the products imported?

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Problem with databse transfer oscommerce to zencart

    Since the tables appear to have different structures, assign the data from one to the other using column names that you have mapped between them, rather than by inserting a list of values. If Zen Cart has more column names you may need to assign default values to the new columns.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Nov 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: Problem with databse transfer oscommerce to zencart

    Would you be willing to sort this out for me if I paid you?

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Problem with databse transfer oscommerce to zencart

    I have a partner who is especially skilled in this type of conversion, and she has contacted you separately. But we would recommend that you take a look at this mod first (sorry all documentation is in French, but it's pretty easy to use even if you don't understand the docs).
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Feb 2008
    Location
    Orange County, CA
    Posts
    25
    Plugin Contributions
    1

    Default Re: Problem with databse transfer oscommerce to zencart

    I have released a new OSC - Zen data importer.

    New and improved for multi-step migrations and easy to use.

    If you still need it, that will solve most of your problems.

    Albert

    http://www.zen-cart.com/index.php?ma...roducts_id=918

  10. #10
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Problem with databse transfer oscommerce to zencart

    I know many people would love this, thanks alot for the great contribution.
    Quote Originally Posted by albertsavage View Post
    I have released a new OSC - Zen data importer.

    New and improved for multi-step migrations and easy to use.

    If you still need it, that will solve most of your problems.

    Albert
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. OSCommerce to Zen Cart Data Transfer add-on problem
    By Stevis2002 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 Oct 2010, 01:03 PM
  2. Stay with OsCommerce or go back to zencart
    By Ch4iS in forum General Questions
    Replies: 1
    Last Post: 20 Aug 2009, 11:54 AM
  3. merging oscommerce with zencart???
    By 1kell in forum General Questions
    Replies: 1
    Last Post: 14 Jul 2008, 01:06 PM
  4. Using oScommerce contributions with ZenCart
    By DiZZ in forum General Questions
    Replies: 4
    Last Post: 11 Nov 2006, 06:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg