Results 1 to 10 of 26

Hybrid View

  1. #1
    Join Date
    Nov 2010
    Posts
    7
    Plugin Contributions
    0

    Default How to perform bulk import of coupon codes? Getting error code 1054.

    I am trying to figure out how to import a bulk number of coupons as we get ready for an upcoming GroupOn special.

    Based on the forum articles I have read, I understand that this can be accomplished by importing a new file into the "coupons" table.

    I have been trying to test this out and I keep getting the following error message:

    #1054 - Unknown column 'A' in 'field list'

    Does anyone have any suggestions on how to overcome this error?

    Thanks....from a new non-technical zenner...

  2. #2
    Join Date
    Aug 2005
    Posts
    26,045
    Plugin Contributions
    9

    Default Re: How to perform bulk import of coupon codes. Getting error code 1054.

    What are you trying to upload and what are you using to do so?

    I mean the actual sql content as your error indicates a not found for column "A"
    Zen-Venom Get Bitten
    Get Your Business Found

  3. #3
    Join Date
    Nov 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: How to perform bulk import of coupon codes. Getting error code 1054.

    I exported the "coupons" table using phpMyAdmin and specified the file format type to be "Excel 97-2003 XLS Workbook". I then opened this file on my computer using Excel, and performed a copy of one of the rows in the spreadsheet and then editted the new row in order to create a new coupon code. I then saved the file and used the import feature on phpMyAdmin to try and upload, but it keeps generating the 1054 error message. I also tried to export in an Open Office format (ODS) and then import the ODS file back, but this results in yet another type of error message.

  4. #4
    Join Date
    Aug 2005
    Posts
    26,045
    Plugin Contributions
    9

    Default Re: How to perform bulk import of coupon codes. Getting error code 1054.

    I exported the "coupons" table using phpMyAdmin and specified the file format type to be "Excel 97-2003 XLS Workbook
    I could not get that to work either
    But exported as a sql in proper format just the coupon table and edited in a code editor and this was a success
    Zen-Venom Get Bitten
    Get Your Business Found

  5. #5
    Join Date
    Nov 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: How to perform bulk import of coupon codes. Getting error code 1054.

    Thanks for the suggestion. I exported the coupons table as an SQL file and then added a new record into the file and imported it back as an SQL file......and now it's giving me the following message:

    MySQL returned an empty result set (i.e. zero rows). ( Query took 0.0001 sec )

    Thanks for any further suggestions....

  6. #6
    Join Date
    Aug 2005
    Posts
    26,045
    Plugin Contributions
    9

    Default Re: How to perform bulk import of coupon codes. Getting error code 1054.

    Post yoour edit to the sql

    Here is what I did with success
    Code:
    -- Dumping data for table `coupons`
    --
    
    INSERT INTO `coupons` (`coupon_id`, `coupon_type`, `coupon_code`, `coupon_amount`, `coupon_minimum_order`, `coupon_start_date`, `coupon_expire_date`, `uses_per_coupon`, `uses_per_user`, `restrict_to_products`, `restrict_to_categories`, `restrict_to_customers`, `coupon_active`, `date_created`, `date_modified`, `coupon_zone_restriction`) VALUES
    (1, 'F', '892a088998', '10.0000', '20.0000', '2010-11-11 00:00:00', '2011-11-11 00:00:00', 100, 1, '', '', NULL, 'Y', '2010-11-11 16:32:39', '2010-11-11 16:32:39', 0);
    INSERT INTO `coupons` (`coupon_id`, `coupon_type`, `coupon_code`, `coupon_amount`, `coupon_minimum_order`, `coupon_start_date`, `coupon_expire_date`, `uses_per_coupon`, `uses_per_user`, `restrict_to_products`, `restrict_to_categories`, `restrict_to_customers`, `coupon_active`, `date_created`, `date_modified`, `coupon_zone_restriction`) VALUES
    (2, 'F', '892a088999', '20.0000', '40.0000', '2010-11-11 00:00:00', '2011-11-11 00:00:00', 100, 1, '', '', NULL, 'Y', '2010-11-11 16:32:39', '2010-11-11 16:32:39', 0);
    Zen-Venom Get Bitten
    Get Your Business Found

 

 

Similar Threads

  1. Coupon error code
    By Henrietta in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 3
    Last Post: 29 Oct 2009, 12:09 AM
  2. 1054 Error - Coupon Code Zones - HELP!!!
    By expresso in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 29 Feb 2008, 08:09 AM
  3. Import Coupon Codes En Masse?
    By HeathenMagic in forum Creating Discounts/Coupons, Gift Certificates, Newsletters
    Replies: 2
    Last Post: 14 Jul 2006, 03:10 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
  •