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

#   Unable to Import from a Exported CSV file.

##

- **[markfell](/forum/user/27962-markfell "View markfell's Profile")**
- [![markfell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27962.png)](/forum/user/27962-markfell "View markfell's Profile") Topic Author
- [ Offline](/forum/user/27962-markfell)

Less More

- Posts: 135
- Thank you received: 5
-
-

8 years 4 months ago [\#294753](#294753) by [markfell](/forum/user/27962-markfell "View markfell's Profile")  *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#294753 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")* was created by *[markfell](/forum/user/27962-markfell "View markfell's Profile")*

-- HikaShop version -- : 3.4.1
-- Joomla version -- : 3.8.10
-- PHP version -- : 5.6.3
-- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit)
-- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line

@support, @forum,

I did a export of ONE product (checked the product and selected export).
Generated the hikashopexport.csv
I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.

Ran the import, and error message "You need 73 arguments per line" came up.

Have attached the csv file, and 3 screen shots with the config for the import and error messages.

I read the doco and that didn't help, has there been a change in the 3.4.1 version ?

I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.

Thanks and Regards,

MSF

- [ ![import&#95;prod.PNG](/forum/attachment/44061) ](/forum/attachment/44061 "import&#95;prod.PNG") [ ](/forum/attachment/44061?download=1 "import&#95;prod.PNG")
- [ ![import&#95;prod1.PNG](/forum/attachment/44062) ](/forum/attachment/44062 "import&#95;prod1.PNG") [ ](/forum/attachment/44062?download=1 "import&#95;prod1.PNG")
- [ ![import&#95;prod2.PNG](/forum/attachment/44064) ](/forum/attachment/44064 "import&#95;prod2.PNG") [ ](/forum/attachment/44064?download=1 "import&#95;prod2.PNG")

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

- **[markfell](/forum/user/27962-markfell "View markfell's Profile")**
- [![markfell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27962.png)](/forum/user/27962-markfell "View markfell's Profile") Topic Author
- [ Offline](/forum/user/27962-markfell)

Less More

- Posts: 135
- Thank you received: 5
-
-

8 years 4 months ago [\#294766](#294766) by [markfell](/forum/user/27962-markfell "View markfell's Profile")  Replied by *[markfell](/forum/user/27962-markfell "View markfell's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#294766 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

And now I have a database full of junk from that import.

See attached.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTUxNDQtdW5hYmxlLXRvLWltcG9ydC1mcm9tLWEtZXhwb3J0ZWQtY3N2LWZpbGU/dG1wbD1tYXJrZG93bg==) 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: 86591
- Thank you received: 14327
-
-

8 years 4 months ago [\#294759](#294759) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#294759 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

Hi,

It seems that your CSV editor added some double quotes around all the elements of the CSV and it messed the CSV file itself.
I would recommend to do the export again, open it with libreoffice / openoffice's calc and modify it there.
Also, you can remove all the category lines that are not useful since you already have all the categories in the shop.

The following user(s) said Thank You: [markfell](/forum/user/27962-markfell "View markfell's Profile")

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

- **[markfell](/forum/user/27962-markfell "View markfell's Profile")**
- [![markfell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27962.png)](/forum/user/27962-markfell "View markfell's Profile") Topic Author
- [ Offline](/forum/user/27962-markfell)

Less More

- Posts: 135
- Thank you received: 5
-
-

8 years 4 months ago [\#294795](#294795) by [markfell](/forum/user/27962-markfell "View markfell's Profile")  Replied by *[markfell](/forum/user/27962-markfell "View markfell's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#294795 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

Thanks Nicolas,
I thought it may have been the editor when I thought about it, but not having looked at this exported file before, wasn't so sure.

Is there a way that I can delete all the extra product lines that it put in.?

MyPhpadmin, export the SQL, drop the product data set, edit the sql file and then import it ?? After a backup of course ?
How do I know good / bad product and their links ?
Good or bad idea ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTUxNDQtdW5hYmxlLXRvLWltcG9ydC1mcm9tLWEtZXhwb3J0ZWQtY3N2LWZpbGU/dG1wbD1tYXJrZG93bg==) 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: 86591
- Thank you received: 14327
-
-

8 years 4 months ago [\#294799](#294799) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#294799 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

Hi,

You could delete the wrong product entries via the interface if you can. You don't necessarily have to do that via PHPMyAdmin.
Now, how do you know if the product is good or bad, that I don't know myself. I suppose you know better than me which products are correct or not.
You should definitely do a backup, but specially before doing an import like that. Specially the first time you do it and you're not sure about the file you're importing.

The following user(s) said Thank You: [markfell](/forum/user/27962-markfell "View markfell's Profile")

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

- **[markfell](/forum/user/27962-markfell "View markfell's Profile")**
- [![markfell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27962.png)](/forum/user/27962-markfell "View markfell's Profile") Topic Author
- [ Offline](/forum/user/27962-markfell)

Less More

- Posts: 135
- Thank you received: 5
-
-

8 years 4 months ago [\#294840](#294840) by [markfell](/forum/user/27962-markfell "View markfell's Profile")  Replied by *[markfell](/forum/user/27962-markfell "View markfell's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#294840 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

Hi Nicolas,

The products are no in the hikashop interface, there just 1000's of rouge entries in the Product Database set.
Hence why I was thinking of just doing SQL dump and cleaning that up and re-importing it.

MSF

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTUxNDQtdW5hYmxlLXRvLWltcG9ydC1mcm9tLWEtZXhwb3J0ZWQtY3N2LWZpbGU/dG1wbD1tYXJrZG93bg==) 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: 86591
- Thank you received: 14327
-
-

8 years 4 months ago [\#294851](#294851) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#294851 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

Hi,

Then, yes, through PHPMyAdmin. And yes, in that case, I would recommend doing a backup before just in case.

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

- **[markfell](/forum/user/27962-markfell "View markfell's Profile")**
- [![markfell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27962.png)](/forum/user/27962-markfell "View markfell's Profile") Topic Author
- [ Offline](/forum/user/27962-markfell)

Less More

- Posts: 135
- Thank you received: 5
-
-

8 years 4 months ago -  8 years 4 months ago [\#295407](#295407) by [markfell](/forum/user/27962-markfell "View markfell's Profile")  Replied by *[markfell](/forum/user/27962-markfell "View markfell's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#295407 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

Hi,

Where in the DB is the counter for the product ID number ?

After my rogue database import, all my id's are now starting at 39000 and I only have 1600 records in the database.

I would like to reset it to 2000.

Also, why does the import put a name (truncated image name) in the **Main Options** name of the Variant when the import file has "" in the csv field?

I have attached the csv file, look at product_id **39119**, then look at the attached screen shot of the Variant after the import, and last image is of the hikashop_file dataset and what it puts in there. It also replaces name also with a truncated image file name.

I have wasted hours today, deleting and rebuilding the database in phpmyadmin.

I have 34 more imports to do, I just want it to work, if I say "" in name field or something, thats what I would like.

Is there a patch needed to fix this, or some code replace you want to send me ?

Thanks in Advance,
MSF

- [ ![variant&#95;database&#95;file&#95;info.PNG](/forum/attachment/44231) ](/forum/attachment/44231 "...&#95;file&#95;info.PNG") [ ](/forum/attachment/44231?download=1 "...&#95;file&#95;info.PNG")
- [ ![variant&#95;name1.PNG](/forum/attachment/44232) ](/forum/attachment/44232 "variant&#95;name1.PNG") [ ](/forum/attachment/44232?download=1 "variant&#95;name1.PNG")

Last edit: 8 years 4 months ago by [markfell](/forum/user/27962-markfell "View markfell's Profile"). Reason: Other errors in the Import program.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTUxNDQtdW5hYmxlLXRvLWltcG9ydC1mcm9tLWEtZXhwb3J0ZWQtY3N2LWZpbGU/dG1wbD1tYXJrZG93bg==) 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: 86591
- Thank you received: 14327
-
-

8 years 4 months ago -  8 years 4 months ago [\#295408](#295408) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#295408 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

Hi,

The product ID is stored in the product_id column of the "hikashop_product" table.
The ID for new products is incremented with the auto increment feature of MySQL:
[ dev.mysql.com/doc/mysql-tutorial-excerpt...-auto-increment.html](https://dev.mysql.com/doc/mysql-tutorial-excerpt/5.5/en/example-auto-increment.html)

Regarding the name of the variants being filled automatically, that's a side effect of the capability HikaShop has to generate products from images in a folder automatically. In such cases, there is no name given and the name is automatically filled with the name of the file used to generate the product.
To avoid that, you can change the line:
if(empty($product-&gt;product_name)){
to:
if(empty($product-&gt;product_name) &amp;&amp; $product-&gt;product_type != 'variant'){
in the file administrator/components/com_hikashop/helpers/import.php
We'll do that change on our end too for the next version.

Last edit: 8 years 4 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [markfell](/forum/user/27962-markfell "View markfell's Profile")

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

- **[markfell](/forum/user/27962-markfell "View markfell's Profile")**
- [![markfell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27962.png)](/forum/user/27962-markfell "View markfell's Profile") Topic Author
- [ Offline](/forum/user/27962-markfell)

Less More

- Posts: 135
- Thank you received: 5
-
-

8 years 4 months ago [\#295460](#295460) by [markfell](/forum/user/27962-markfell "View markfell's Profile")  Replied by *[markfell](/forum/user/27962-markfell "View markfell's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#295460 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

Hi,

Also modified the code when using another product as the template. It used the name of the product and places it in all the variants names.

$product-&gt;product_name = $this-&gt;template-&gt;product_name; to

$product-&gt;product_name = "";

MSF

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTUxNDQtdW5hYmxlLXRvLWltcG9ydC1mcm9tLWEtZXhwb3J0ZWQtY3N2LWZpbGU/dG1wbD1tYXJrZG93bg==) 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: 86591
- Thank you received: 14327
-
-

8 years 4 months ago [\#295464](#295464) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#295464 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

Hi,

Thanks for the feedback.
However that change is not correct as it will have side effects you don't want. For example, if you try to duplicate a product with the "copy" button on the products listing, the product name won't be copied over if you do that modification.
Instead, it will be better to change the line:
if(empty($product-&gt;product_name) &amp;&amp; !empty($this-&gt;template-&gt;product_name)){
to:
if(empty($product-&gt;product_name) &amp;&amp; !empty($this-&gt;template-&gt;product_name) &amp;&amp; $product-&gt;product_type != 'variant'){

The following user(s) said Thank You: [markfell](/forum/user/27962-markfell "View markfell's Profile")

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

- **[markfell](/forum/user/27962-markfell "View markfell's Profile")**
- [![markfell's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar27962.png)](/forum/user/27962-markfell "View markfell's Profile") Topic Author
- [ Offline](/forum/user/27962-markfell)

Less More

- Posts: 135
- Thank you received: 5
-
-

8 years 4 months ago [\#295505](#295505) by [markfell](/forum/user/27962-markfell "View markfell's Profile")  Replied by *[markfell](/forum/user/27962-markfell "View markfell's Profile")* on topic *[Unable to Import from a Exported CSV file.](/forum/37-import-export-csv-xls/895144-unable-to-import-from-a-exported-csv-file#295505 "-- HikaShop version -- : 3.4.1 -- Joomla version -- : 3.8.10 -- PHP version -- : 5.6.3 -- Browser(s) name and version -- : Chrome 67.0.3396.79 (Official Build) (64-bit) -- Error-message(debug-mod must be tuned on) -- : You need 73 arguments per line  @support, @forum,  I did a export of ONE product (checked the product and selected export). Generated the hikashopexport.csv I updated 4 variants (record numbers #29251, #29275, #29283 &amp; #29291) with Image file paths and names in the csv file, saved it.  Ran the import, and error message &quot;You need 73 arguments per line&quot; came up.  Have attached the csv file, and 3 screen shots with the config for the import and error messages.  I read the doco and that didn't help, has there been a change in the 3.4.1 version ?  I realise there are way too many Variants for the product, but I am just trying to make this easier for me to get all the products and variants into the shop without screen input everything.  Thanks and Regards,  MSF")*

Hi,

Thanks Nicolas, have changed the code.

MSF

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84OTUxNDQtdW5hYmxlLXRvLWltcG9ydC1mcm9tLWEtZXhwb3J0ZWQtY3N2LWZpbGU/dG1wbD1tYXJrZG93bg==) 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.079 seconds

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