1. gingercarver
  2. RO CSVI
  3. Friday, 07 April 2017
  4.  Subscribe via email
Hi,

I am getting "Duplicate entry for key 'slug'"

I understand that the slug is based on the first 64 characters of product_name

I have many duplicates.

I want to use https://csvimproved.com/support/import/1094-field-copy-plugin to copy product_sku to slug.

I have followed the instructions as closely as I can, but I have no slugs shown on "preview", and i still get Duplicate entry for key 'slug' on "import".

Any ideas?
Thanks.
Accepted Answer Pending Moderation
Got it, many thanks!!
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Hello,
Since you have set a field copy rule to use intnotes as slug, you can set Recreate alias to No on Options tab in your template settings. Recreate alias will use the product name to generate slug for a product, that could be cause for duplicate error.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 2
Accepted Answer Pending Moderation
... AdvancedTemplateOptions.PNG last one
Attachments (1)
  1. more than a month ago
  2. RO CSVI
  3. # 3
Accepted Answer Pending Moderation
Hi there,

I have done that now. The problem is still present at the import stage, although I can see its fixed at the preview stage. I have uploaded screenshots of the good preview, the error at import, the various settings pages, and the csv file that causes it.

Thanks!
Attachments (8)
  1. more than a month ago
  2. RO CSVI
  3. # 4
Accepted Answer Pending Moderation
Hello,
You have set the source field to be intnotes field so you need to set your rule SKU-to-slug on intnotes and not on slug field. Correct this and run the import again.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 5
Accepted Answer Pending Moderation
Hi,

I already set Recreate alias to Yes in Options tab in the import template, but it still says "Duplicate entry".

Please see attached.

Thanks.
Attachments (4)
  1. more than a month ago
  2. RO CSVI
  3. # 6
Accepted Answer Pending Moderation
Hello,
Can you post the screenshot of your field copy rule and how you have set the rule in your template fields? If you are not specific about product name as slug and want CSVI to create slug, you can set Recreate alias to Yes in Options tab in your import template settings. Click on Advanced button on top right if you don't see this option. CSVI will generate slug and would take care of the duplicates too.
Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 7
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!