Author Topic: Import errors and how to resolve.  (Read 2688 times)

Offline Old-Paul

  • Newbie
  • *
  • Posts: 9
  • Karma: +1/-0
  • Old web guy. Doing this for over 28 years!
    • View Profile
    • Stuff Done
Import errors and how to resolve.
« on: December 10, 2023, 07:28:11 PM »
This is my first attempt to use AbanteCart cart and one of the reasons I chose it was the import capabilities.

I am having some issues with import and have the following errors but not sure how to resolve them due to lack of clarity of what the errors mean.

I'm assuming has to do with the fields/data in the CSV file.  One question is on a product import what is the correct name of the field to designate what category those products belong in? I looked in examples and cannot find a field that would seem to place imported products into a designated catatory.

insert data error in products. SQL Error: Unknown column 'category' in 'field list'

and

Missing relation ID tag for update_or_insert action in table product_tags


and

Insert data error for resource_map SQL Error: Duplicate entry '0-products-0' for key 'PRIMARY'


Any help appreciated.







=========================================
  What does "retired" mean?  I'm almost 78 still doing this crap!

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5819
  • Karma: +274/-2
    • View Profile
Re: Import errors and how to resolve.
« Reply #1 on: December 11, 2023, 02:59:40 AM »
Hello.
Please attach the CSV file you import. Worth noting that AbanteCart supports two different formats for the import process. Most easiest for beginners is this https://abantecart.atlassian.net/wiki/spaces/AD/pages/16777227/Import+Wizard

Offline Old-Paul

  • Newbie
  • *
  • Posts: 9
  • Karma: +1/-0
  • Old web guy. Doing this for over 28 years!
    • View Profile
    • Stuff Done
Re: Import errors and how to resolve.
« Reply #2 on: December 11, 2023, 04:44:44 PM »
I will try private message due to bug in this forum.

Sorry, you are not allowed to post external links

I had zero links in my reply?  Hope admins fix this as it appears if you discuss fields in import files this form seems to think they are a URL.



=========================================
  What does "retired" mean?  I'm almost 78 still doing this crap!

Offline Old-Paul

  • Newbie
  • *
  • Posts: 9
  • Karma: +1/-0
  • Old web guy. Doing this for over 28 years!
    • View Profile
    • Stuff Done
Re: Import errors and how to resolve.
« Reply #3 on: December 11, 2023, 08:50:36 PM »
I will try private message due to bug in this forum.

Sorry, you are not allowed to post external links

I had zero links in my reply?  Hope admins fix this as it appears if you discuss fields in import files this form seems to think they are a URL.

This turned out to be a big help!  Thank you many times.

I now have configured my own CSV which works every time using your example as a guide.  I remove a lot of columns from data file to narrow to a small set relative to my needs.

Have a great holiday!
=========================================
  What does "retired" mean?  I'm almost 78 still doing this crap!

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5819
  • Karma: +274/-2
    • View Profile
Re: Import errors and how to resolve.
« Reply #4 on: December 12, 2023, 02:46:40 AM »
Hello.
To prevent spam, the forum restricts new users from posting direct links. You need to earn a +20 reputation to post links.

 

Database Error

Please try again. If you come back to this error screen, report the error to an administrator.