Results 1 to 3 of 3

zones not importing - strange error

This is a discussion on zones not importing - strange error within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I'm trying to copy and paste some of the world zone contributions sql files from bbedit into the zones table ...

      
  1. #1
    New Member
    Join Date
    Feb 2003
    Posts
    20
    Rep Power
    0


    Default zones not importing - strange error

    I'm trying to copy and paste some of the world zone contributions sql files from bbedit into the zones table in phpMyAdmin. But I keep getting this message:

    Database catalog running on localhost

    Error

    SQL-query*:*

    INSERT INTO zones
    VALUES ( 1, 223, 'AL', 'Alabama' )

    MySQL said:



    Duplicate entry '1' for key 1

    Back


    It doesn't matter which zones I copy and paste - after a certain amount I keep getting an error which is similar, with or without Alabama!


    Is there a limit to the amount of zones I can have in the zones table or something?

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    You have to empty the table first. You cant have 2 records with the same number...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Feb 2003
    Posts
    20
    Rep Power
    0


    Default yes but ...

    I did empty the table first then under the sql tab simply copied and pasted the national zones that I wanted to use which I downloaded from the zones contributions list. I was able to do this fine for all the zones (usa,uk,australiam mexico, etc.) except for Canada, Switzerland, Austria and Germany. When you say that I can't have two records with the same number (i.e 1 in VALUES ( 1, 223, 'AL', 'Alabama' ) ) should I check to see if this number is used in the zones of Canada, Switzerland, Austria and/or Germany and simply change this to a number of my choice of number (not used by any of the other world zones)? If so what mistakes should I be careful of not doing?

Similar Threads

  1. HELP with STRANGE Fedex error message
    By torweb in forum osCMax v2 Features Discussion
    Replies: 2
    Last Post: 05-12-2006, 09:51 PM
  2. How to add sub zones in tax zones
    By cage1014 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-04-2006, 09:06 AM
  3. any documentation available? (zones / shipping / tax zones..
    By brianstorm in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 09-23-2003, 10:17 AM
  4. Strange install error....
    By ceres in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 06-02-2003, 03:01 PM
  5. Strange error message
    By killermonkey in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-05-2003, 09:42 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
  •