[Skip to main content](#vessel-content)

#   Import from CSV file doesn't work properly

##

- **[Cobraman](/forum/user/17172-cobraman "View Cobraman's Profile")**
- [![Cobraman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17172-cobraman "View Cobraman's Profile") Topic Author
- [ Offline](/forum/user/17172-cobraman)

Less More

- Posts: 4
- Thank you received: 0
-
-

13 years 6 months ago [\#100367](#100367) by [Cobraman](/forum/user/17172-cobraman "View Cobraman's Profile")  *[Import from CSV file doesn't work properly](/forum/3-bug-report/80710-import-from-csv-file-doesnt-work-properly#100367 "this is the problem.  i made a CSV file from an excel sheet and tried to import this in Hikashop. from the first 34 items only 18 or so are imported ??!?!?  everything looks the same, but i get this error: &quot;The product is of the type but it already exists in the database and is of the type variant. In order to avoid any problem the product insertion process has been skipped. Please correct its type before trying to reimport it.&quot;  i corrected the items (left the product&#95;Type field blank) then re-imported it but the it din't work also......  can someone help me please..")* was created by *[Cobraman](/forum/user/17172-cobraman "View Cobraman's Profile")*

this is the problem.

i made a CSV file from an excel sheet and tried to import this in Hikashop.
from the first 34 items only 18 or so are imported ??!?!?

everything looks the same, but i get this error:
"The product is of the type but it already exists in the database and is of the type variant. In order to avoid any problem the product insertion process has been skipped. Please correct its type before trying to reimport it."

i corrected the items (left the product_Type field blank) then re-imported it but the it din't work also......

can someone help me please..

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDcxMC1pbXBvcnQtZnJvbS1jc3YtZmlsZS1kb2VzbnQtd29yay1wcm9wZXJseT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 6 months ago [\#100407](#100407) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Import from CSV file doesn't work properly](/forum/3-bug-report/80710-import-from-csv-file-doesnt-work-properly#100407 "this is the problem.  i made a CSV file from an excel sheet and tried to import this in Hikashop. from the first 34 items only 18 or so are imported ??!?!?  everything looks the same, but i get this error: &quot;The product is of the type but it already exists in the database and is of the type variant. In order to avoid any problem the product insertion process has been skipped. Please correct its type before trying to reimport it.&quot;  i corrected the items (left the product&#95;Type field blank) then re-imported it but the it din't work also......  can someone help me please..")*

Hi,

I think that the best solution would be to :
- Export all of your products through a CSV file
- Edit and import this file

Hope this will help you a little.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDcxMC1pbXBvcnQtZnJvbS1jc3YtZmlsZS1kb2VzbnQtd29yay1wcm9wZXJseT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Cobraman](/forum/user/17172-cobraman "View Cobraman's Profile")**
- [![Cobraman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17172-cobraman "View Cobraman's Profile") Topic Author
- [ Offline](/forum/user/17172-cobraman)

Less More

- Posts: 4
- Thank you received: 0
-
-

13 years 6 months ago [\#100659](#100659) by [Cobraman](/forum/user/17172-cobraman "View Cobraman's Profile")  Replied by *[Cobraman](/forum/user/17172-cobraman "View Cobraman's Profile")* on topic *[Import from CSV file doesn't work properly](/forum/3-bug-report/80710-import-from-csv-file-doesnt-work-properly#100659 "this is the problem.  i made a CSV file from an excel sheet and tried to import this in Hikashop. from the first 34 items only 18 or so are imported ??!?!?  everything looks the same, but i get this error: &quot;The product is of the type but it already exists in the database and is of the type variant. In order to avoid any problem the product insertion process has been skipped. Please correct its type before trying to reimport it.&quot;  i corrected the items (left the product&#95;Type field blank) then re-imported it but the it din't work also......  can someone help me please..")*

I've tried this but it did't work...............

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDcxMC1pbXBvcnQtZnJvbS1jc3YtZmlsZS1kb2VzbnQtd29yay1wcm9wZXJseT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 6 months ago [\#100680](#100680) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import from CSV file doesn't work properly](/forum/3-bug-report/80710-import-from-csv-file-doesnt-work-properly#100680 "this is the problem.  i made a CSV file from an excel sheet and tried to import this in Hikashop. from the first 34 items only 18 or so are imported ??!?!?  everything looks the same, but i get this error: &quot;The product is of the type but it already exists in the database and is of the type variant. In order to avoid any problem the product insertion process has been skipped. Please correct its type before trying to reimport it.&quot;  i corrected the items (left the product&#95;Type field blank) then re-imported it but the it din't work also......  can someone help me please..")*

The product_type column should be either "main" for main products or "variant" for variants of products.
If you get that error, it means that the line of the CSV mentions the product_type as "empty" or "main" but that the corresponding entry in the database (based on the product_code) is a variant. and it's not possible to change the type of the entry like that. Which means that your CSV is erroneous.
Correct your CSV and it will work.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84MDcxMC1pbXBvcnQtZnJvbS1jc3YtZmlsZS1kb2VzbnQtd29yay1wcm9wZXJseT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.099 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
