PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

[HELP] Duplicate entry '0-1' for key 1 ??

4 replies to this topic
#1
ding

    PrestaShop Apprentice

  • Members
  • PipPip
  • 61 posts
i import CSV to upload my products but PS warns me :
Duplicate entry '0-1' for key 1
"test" (ID 2) cannot be saved
anyone have the same problem?

#2
tomerg3

    PrestaShop Superstar

  • US Moderators
  • 5753 posts
This error means that there is already a record with the same ID which needs to be unique.

You are either trying to import to a table that already has data, or you are trying to import identical records from your csv file
Posted Image
For the latest updates discount coupons and new module information follow us on Twitter , Facebook ,and tips on our Blog
Please do not send general questions via PM, that is what the forum is for...

#3
ding

    PrestaShop Apprentice

  • Members
  • PipPip
  • 61 posts
really thx, tomerg3.
i have already cleared data before i import csv file. and i reset "id_product" field to make it start 1;

#4
Guest__*
  • Guests
Let the database fix it by itself.
Login in phpadmin select "all" the tables at the bottom of the database's first page, choose "repair"in the dropdown menu,then the problem is fixed.

#5
mhu100

    PrestaShop Apprentice

  • Members
  • PipPip
  • 109 posts
I'm having the same problem. I used both methodes 1. the backup database function in PS and 2. Export via phpmyadmin. Next I tried to import this file via phpmyadmin in an other database (local test database) and I'm getting messages like this:

#1062 - Duplicate entry '3-klettverschluß' for key 'id_lang'

The table that causes this problems is always the Search_Word table

I have checked everything and I'm sure that this entry is not an duplicate. What is going wrong?

It should be a simple Export --> Import procedure, but I'm not getting it done!

Is there anyone who can help me out? It's driving me crazy after hours and hours of searching and trying.