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

#   Mass actions CSV import not working as expected.

##

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

Less More

- Posts: 250
- Thank you received: 7
- [](http://www.estm.co.uk)
-

10 years 5 months ago -  10 years 5 months ago [\#243030](#243030) by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")  *[Mass actions CSV import not working as expected.](/forum/37-import-export-csv-xls/885075-mass-actions-csv-import-not-working-as-expected#243030 "-- url of the page with the problem -- :   www.artistpapers.co.uk  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.5  Hi,  I am trying to add GTIN to my products. I have added a custom field product&#95;cust&#95;gtin to the product database and have a csv file with columns product&#95;code and product&#95;cust&#95;gtin. There are 676 rows in my csv (676 products) which are all variants and I have a header row with the field names.  I have setup a mass action with the csv filter to import the file. When I run it just 73 of the rows import correctly, 20 rows say product not found (even though some of them exist) which leaves me with nearly 600 rows that just don't import.  For some rows to import but others not suggests a problem with the csv file but it looks fine to me ( attached ). I have tried with and without quotes round the text fields but get the same results. I have also attached screen shot of mass action settings. What could be going on here?  Thanks,  Ian")* was created by *[iedwards](/forum/user/12400-iedwards "View iedwards's Profile")*

-- url of the page with the problem -- : [ www.artistpapers.co.uk](https://www.artistpapers.co.uk)
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 7.0.5

Hi,

I am trying to add GTIN to my products. I have added a custom field **product\_cust\_gtin** to the product database and have a csv file with columns **product\_code** and **product\_cust\_gtin**. There are 676 rows in my csv (676 products) which are all variants and I have a header row with the field names.

I have setup a mass action with the csv filter to import the file. When I run it just 73 of the rows import correctly, 20 rows say product not found (even though some of them exist) which leaves me with nearly 600 rows that just don't import.

For some rows to import but others not suggests a problem with the csv file but it looks fine to me ( attached ). I have tried with and without quotes round the text fields but get the same results. I have also attached screen shot of mass action settings. What could be going on here?

Thanks,

Ian

---

[ Ian Edwards Film Sound Recording](https://estm.co.uk)
[ Alveley Mining Heritage](https://alveleyminingheritage.org)
[ Mary Edwards-Porter - Author](https://www.mary-edwards-porter.co.uk)

- [ ![Capture&#95;2016-06-15.jpg](/forum/attachment/32078) ](/forum/attachment/32078 "...2016-06-15.jpg") [ ](/forum/attachment/32078?download=1 "...2016-06-15.jpg")

Last edit: 10 years 5 months ago by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 5 months ago [\#243041](#243041) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Mass actions CSV import not working as expected.](/forum/37-import-export-csv-xls/885075-mass-actions-csv-import-not-working-as-expected#243041 "-- url of the page with the problem -- :   www.artistpapers.co.uk  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.5  Hi,  I am trying to add GTIN to my products. I have added a custom field product&#95;cust&#95;gtin to the product database and have a csv file with columns product&#95;code and product&#95;cust&#95;gtin. There are 676 rows in my csv (676 products) which are all variants and I have a header row with the field names.  I have setup a mass action with the csv filter to import the file. When I run it just 73 of the rows import correctly, 20 rows say product not found (even though some of them exist) which leaves me with nearly 600 rows that just don't import.  For some rows to import but others not suggests a problem with the csv file but it looks fine to me ( attached ). I have tried with and without quotes round the text fields but get the same results. I have also attached screen shot of mass action settings. What could be going on here?  Thanks,  Ian")*

Hi,

Everything seems to be correct, the csv file is well formatted and the mass action settings seems to be as they should.
You have to check the option "ADD_ON_CSV_IMPORT_MASSACTION" in order to add not existing products.

If that does not help, please try to update with the latest version from our website (still 2.6.3 but with some fixes).

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

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

Less More

- Posts: 250
- Thank you received: 7
- [](http://www.estm.co.uk)
-

9 years 10 months ago [\#261287](#261287) by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")  Replied by *[iedwards](/forum/user/12400-iedwards "View iedwards's Profile")* on topic *[Mass actions CSV import not working as expected.](/forum/37-import-export-csv-xls/885075-mass-actions-csv-import-not-working-as-expected#261287 "-- url of the page with the problem -- :   www.artistpapers.co.uk  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.5  Hi,  I am trying to add GTIN to my products. I have added a custom field product&#95;cust&#95;gtin to the product database and have a csv file with columns product&#95;code and product&#95;cust&#95;gtin. There are 676 rows in my csv (676 products) which are all variants and I have a header row with the field names.  I have setup a mass action with the csv filter to import the file. When I run it just 73 of the rows import correctly, 20 rows say product not found (even though some of them exist) which leaves me with nearly 600 rows that just don't import.  For some rows to import but others not suggests a problem with the csv file but it looks fine to me ( attached ). I have tried with and without quotes round the text fields but get the same results. I have also attached screen shot of mass action settings. What could be going on here?  Thanks,  Ian")*

I'm currently on Hikashop 2.6.4 and this still isn't working.

Some GTIN's have imported correctly but most haven't.

This is really annoying!

Ian

---

[ Ian Edwards Film Sound Recording](https://estm.co.uk)
[ Alveley Mining Heritage](https://alveleyminingheritage.org)
[ Mary Edwards-Porter - Author](https://www.mary-edwards-porter.co.uk)

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

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

Less More

- Posts: 250
- Thank you received: 7
- [](http://www.estm.co.uk)
-

9 years 10 months ago -  9 years 10 months ago [\#261302](#261302) by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")  Replied by *[iedwards](/forum/user/12400-iedwards "View iedwards's Profile")* on topic *[Mass actions CSV import not working as expected.](/forum/37-import-export-csv-xls/885075-mass-actions-csv-import-not-working-as-expected#261302 "-- url of the page with the problem -- :   www.artistpapers.co.uk  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.5  Hi,  I am trying to add GTIN to my products. I have added a custom field product&#95;cust&#95;gtin to the product database and have a csv file with columns product&#95;code and product&#95;cust&#95;gtin. There are 676 rows in my csv (676 products) which are all variants and I have a header row with the field names.  I have setup a mass action with the csv filter to import the file. When I run it just 73 of the rows import correctly, 20 rows say product not found (even though some of them exist) which leaves me with nearly 600 rows that just don't import.  For some rows to import but others not suggests a problem with the csv file but it looks fine to me ( attached ). I have tried with and without quotes round the text fields but get the same results. I have also attached screen shot of mass action settings. What could be going on here?  Thanks,  Ian")*

Further to the above, I've used a manual process to import a csv file of product codes and GTIN which might help anyone else.

The background to this is that the Google products feed requires the product data to have a GTIN otherwise products are disallowed ( this rule is being applied to an increasing range of products ).

In Hikashop I created a custom field in the products table &#96;cust_product_gtin&#96;

Then using PHPMyAdmin manually created a temporary table &#96;tmp_product_gtin&#96; with columns &#96;product_code&#96; and &#96;product_cust_gtin&#96;

Used PHPMyAdmin to import the csv to the temporary table

Then ran this query to update the Hikashop products table from the data in the temporary table ( replace "ap" with the prefix to your own database )
Code:

UPDATE &#96;ap_hikashop_product&#96; p JOIN &#96;tmp_product_gtin&#96; t ON p.&#96;product_code&#96; = t.&#96;product_code&#96; SET p.&#96;product_cust_gtin&#96; = t.&#96;product_cust_gtin&#96;

I now have 627 products with GTIN set instead of the 82 I got after trying to use mass action to import the data.

---

[ Ian Edwards Film Sound Recording](https://estm.co.uk)
[ Alveley Mining Heritage](https://alveleyminingheritage.org)
[ Mary Edwards-Porter - Author](https://www.mary-edwards-porter.co.uk)

Last edit: 9 years 10 months ago by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 10 months ago [\#261297](#261297) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Mass actions CSV import not working as expected.](/forum/37-import-export-csv-xls/885075-mass-actions-csv-import-not-working-as-expected#261297 "-- url of the page with the problem -- :   www.artistpapers.co.uk  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.5  Hi,  I am trying to add GTIN to my products. I have added a custom field product&#95;cust&#95;gtin to the product database and have a csv file with columns product&#95;code and product&#95;cust&#95;gtin. There are 676 rows in my csv (676 products) which are all variants and I have a header row with the field names.  I have setup a mass action with the csv filter to import the file. When I run it just 73 of the rows import correctly, 20 rows say product not found (even though some of them exist) which leaves me with nearly 600 rows that just don't import.  For some rows to import but others not suggests a problem with the csv file but it looks fine to me ( attached ). I have tried with and without quotes round the text fields but get the same results. I have also attached screen shot of mass action settings. What could be going on here?  Thanks,  Ian")*

Hi,

I see that you have a "product_type" filter on the "variants".
Maybe it's related with your "partial importing" issue ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 250
- Thank you received: 7
- [](http://www.estm.co.uk)
-

9 years 10 months ago [\#261346](#261346) by [iedwards](/forum/user/12400-iedwards "View iedwards's Profile")  Replied by *[iedwards](/forum/user/12400-iedwards "View iedwards's Profile")* on topic *[Mass actions CSV import not working as expected.](/forum/37-import-export-csv-xls/885075-mass-actions-csv-import-not-working-as-expected#261346 "-- url of the page with the problem -- :   www.artistpapers.co.uk  -- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.5  Hi,  I am trying to add GTIN to my products. I have added a custom field product&#95;cust&#95;gtin to the product database and have a csv file with columns product&#95;code and product&#95;cust&#95;gtin. There are 676 rows in my csv (676 products) which are all variants and I have a header row with the field names.  I have setup a mass action with the csv filter to import the file. When I run it just 73 of the rows import correctly, 20 rows say product not found (even though some of them exist) which leaves me with nearly 600 rows that just don't import.  For some rows to import but others not suggests a problem with the csv file but it looks fine to me ( attached ). I have tried with and without quotes round the text fields but get the same results. I have also attached screen shot of mass action settings. What could be going on here?  Thanks,  Ian")*

Sounds possible doesn't it but I tried it without any filters and still only about 80 of 600 items updated.

There is an issue in that some of the products in the spreadsheet aren't in Hikashop, so I get some "products not found" messages. I can imagine that might break the import but it doesn't give any indication that it has failed and it should be able to cope with that really.

Ian

---

[ Ian Edwards Film Sound Recording](https://estm.co.uk)
[ Alveley Mining Heritage](https://alveleyminingheritage.org)
[ Mary Edwards-Porter - Author](https://www.mary-edwards-porter.co.uk)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODUwNzUtbWFzcy1hY3Rpb25zLWNzdi1pbXBvcnQtbm90LXdvcmtpbmctYXMtZXhwZWN0ZWQ/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.064 seconds

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