Hi again ;-)
Any idea why Duplicate entry '' for key 'slug' error happens when I include the Manufacturer field in an xml import?
Thanks!
Dennis com_csvi.log.57.txt.zip
- barracuda69
- RO CSVI
- Thursday, 16 November 2017
- Subscribe via email
0
Accepted Answer
Pending Moderation
Hello Dennis,
You did not paste the complete error. Slug field is a unique field and duplicate slug error means there is already an entry in database for slug with the same name as you are importing. If you want CSVI to generate unique slug field for you, you can set Recreate alias to Yes in your template settings and on Options tab and then run the import.
You did not paste the complete error. Slug field is a unique field and duplicate slug error means there is already an entry in database for slug with the same name as you are importing. If you want CSVI to generate unique slug field for you, you can set Recreate alias to Yes in your template settings and on Options tab and then run the import.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Thanks Tharuna.
I'll do that and get back to you.
Sorry for bugging you with questions all the time ;-)
I'll do that and get back to you.
Sorry for bugging you with questions all the time ;-)
Accepted Answer
Pending Moderation
Hi Tharuna,
Recreate Alias didn't work but here's what worked:
For some reason, inside the manufactuers table there was an entry with ID 0, empty name and empty slug. Deleting this allowed the import to proceed correctly both with and without the Recreate Alias option.
Thanks for your time and help once again!
Dennis
Recreate Alias didn't work but here's what worked:
For some reason, inside the manufactuers table there was an entry with ID 0, empty name and empty slug. Deleting this allowed the import to proceed correctly both with and without the Recreate Alias option.
Thanks for your time and help once again!
Dennis
Accepted Answer
Pending Moderation
Hello Dennis,
Glad that you found it out. Yes those empty entries should not be there in database tables.
Glad that you found it out. Yes those empty entries should not be there in database tables.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hi i join this thread because i have similar error
Duplicate entry 'matrix-proforma-high-amplify-extra-silny-lak-400ml-1' for key 'slug'
in template settings i have recreate alias ON, so where is is mistake, after several attempts i erase whole tables in DB with manufacturer data, but error appears again!
com_csvi.log.24647.zip
Duplicate entry 'matrix-proforma-high-amplify-extra-silny-lak-400ml-1' for key 'slug'
in template settings i have recreate alias ON, so where is is mistake, after several attempts i erase whole tables in DB with manufacturer data, but error appears again!
com_csvi.log.24647.zip
Attachments (1)
Accepted Answer
Pending Moderation
Hello,
First thing i noticed in your debug log is that you have set import based on field to be product_name in your template settings and on Options tab. The idea of having the import based on field is that CSVI checks for a row in database with this field value, if the row exists the record is updated and if the row does not exist a new row is inserted. We would suggest to use unique fields like product_sku or product_gtin in import based on field instead of product name where duplicate product names are possible. Try import by changing this import based on field. If you still have any issues post your latest debug log along with your import file.
First thing i noticed in your debug log is that you have set import based on field to be product_name in your template settings and on Options tab. The idea of having the import based on field is that CSVI checks for a row in database with this field value, if the row exists the record is updated and if the row does not exist a new row is inserted. We would suggest to use unique fields like product_sku or product_gtin in import based on field instead of product name where duplicate product names are possible. Try import by changing this import based on field. If you still have any issues post your latest debug log along with your import file.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »