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

#   Error in migration from VM2

##

- **[Joomill](/forum/user/33738-joomill "View Joomill's Profile")**
- [![Joomill's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33738.jpg)](/forum/user/33738-joomill "View Joomill's Profile") Topic Author
- [ Offline](/forum/user/33738-joomill)

Less More

- Posts: 224
- Thank you received: 10
-
-
- [](http://www.joomill.nl)
-

9 years 10 months ago -  9 years 10 months ago [\#259048](#259048) by [Joomill](/forum/user/33738-joomill "View Joomill's Profile")  *[Error in migration from VM2](/forum/37-import-export-csv-xls/888213-error-in-migration-from-vm2#259048 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5  I've got a few errors in VM2 migration, most i solved in the vm2.php, now i see the message below when i try to import the orders and i can't find what to do, can you help me?  Got error 28 from storage engine SQL=INSERT IGNORE INTO &#96;#&#95;&#95;hikashop&#95;order&#96; (&#96;order&#95;number&#96;,&#96;order&#95;vm&#95;id&#96;,&#96;order&#95;user&#95;id&#96;,&#96;order&#95;status&#96;,&#96;order&#95;discount&#95;code&#96;,&#96;order&#95;discount&#95;price&#96;,&#96;order&#95;created&#96;,&#96;order&#95;ip&#96;,&#96;order&#95;currency&#95;id&#96;,&#96;order&#95;shipping&#95;price&#96;,&#96;order&#95;shipping&#95;method&#96;,&#96;order&#95;shipping&#95;id&#96;,&#96;order&#95;payment&#95;id&#96;,&#96;order&#95;payment&#95;method&#96;,&#96;order&#95;full&#95;price&#96;,&#96;opmerking&#96;,&#96;order&#95;modified&#96;,&#96;order&#95;partner&#95;id&#96;,&#96;order&#95;partner&#95;price&#96;,&#96;order&#95;partner&#95;paid&#96;,&#96;order&#95;type&#96;,&#96;order&#95;partner&#95;currency&#95;id&#96;,&#96;order&#95;shipping&#95;tax&#96;,&#96;order&#95;discount&#95;tax&#96;) SELECT vmo.order&#95;number,vmo.virtuemart&#95;order&#95;id,hkusr.user&#95;id,hkc.category&#95;name,vmo.coupon&#95;code,vmo.coupon&#95;discount,UNIX&#95;TIMESTAMP(vmo.created&#95;on),vmo.ip&#95;address,hkcur.currency&#95;id,vmo.order&#95;shipment,'vm import',1,0,'vm import',vmo.order&#95;total,vmo.customer&#95;note,UNIX&#95;TIMESTAMP(vmo.modified&#95;on),0,0,0,'sale',0,vmo.order&#95;shipment&#95;tax,0 FROM &#96;#&#95;&#95;virtuemart&#95;orders&#96; AS vmo INNER JOIN &#96;#&#95;&#95;virtuemart&#95;currencies&#96; vmc ON vmo.order&#95;currency = vmc.virtuemart&#95;currency&#95;id INNER JOIN &#96;#&#95;&#95;hikashop&#95;currency&#96; hkcur ON CONVERT(vmc.currency&#95;code&#95;3 USING utf8) = CONVERT( hkcur.currency&#95;code USING utf8) LEFT JOIN &#96;#&#95;&#95;virtuemart&#95;orderstates&#96; AS vmos ON vmo.order&#95;status = vmos.order&#95;status&#95;code LEFT JOIN &#96;#&#95;&#95;hikashop&#95;category&#96; AS hkc ON vmos.order&#95;status&#95;name = hkc.category&#95;name AND hkc.category&#95;type = 'status' LEFT JOIN &#96;#&#95;&#95;hikashop&#95;user&#96; AS hkusr ON vmo.virtuemart&#95;user&#95;id = hkusr.user&#95;cms&#95;id WHERE vmo.virtuemart&#95;order&#95;id &gt; 0 GROUP BY vmo.virtuemart&#95;order&#95;id ORDER BY vmo.virtuemart&#95;order&#95;id ASC;  Thanks in advance.")* was created by *[Joomill](/forum/user/33738-joomill "View Joomill's Profile")*

-- HikaShop version -- : 2.6.4
-- Joomla version -- : 3.6.5

I've got a few errors in VM2 migration, most i solved in the vm2.php,
now i see the message below when i try to import the orders and i can't find what to do, can you help me?

Got error 28 from storage engine SQL=INSERT IGNORE INTO &#96;#__hikashop_order&#96; (&#96;order_number&#96;,&#96;order_vm_id&#96;,&#96;order_user_id&#96;,&#96;order_status&#96;,&#96;order_discount_code&#96;,&#96;order_discount_price&#96;,&#96;order_created&#96;,&#96;order_ip&#96;,&#96;order_currency_id&#96;,&#96;order_shipping_price&#96;,&#96;order_shipping_method&#96;,&#96;order_shipping_id&#96;,&#96;order_payment_id&#96;,&#96;order_payment_method&#96;,&#96;order_full_price&#96;,&#96;opmerking&#96;,&#96;order_modified&#96;,&#96;order_partner_id&#96;,&#96;order_partner_price&#96;,&#96;order_partner_paid&#96;,&#96;order_type&#96;,&#96;order_partner_currency_id&#96;,&#96;order_shipping_tax&#96;,&#96;order_discount_tax&#96;) SELECT vmo.order_number,vmo.virtuemart_order_id,hkusr.user_id,hkc.category_name,vmo.coupon_code,vmo.coupon_discount,UNIX_TIMESTAMP(vmo.created_on),vmo.ip_address,hkcur.currency_id,vmo.order_shipment,'vm import',1,0,'vm import',vmo.order_total,vmo.customer_note,UNIX_TIMESTAMP(vmo.modified_on),0,0,0,'sale',0,vmo.order_shipment_tax,0 FROM &#96;#__virtuemart_orders&#96; AS vmo INNER JOIN &#96;#__virtuemart_currencies&#96; vmc ON vmo.order_currency = vmc.virtuemart_currency_id INNER JOIN &#96;#__hikashop_currency&#96; hkcur ON CONVERT(vmc.currency_code_3 USING utf8) = CONVERT( hkcur.currency_code USING utf8) LEFT JOIN &#96;#__virtuemart_orderstates&#96; AS vmos ON vmo.order_status = vmos.order_status_code LEFT JOIN &#96;#__hikashop_category&#96; AS hkc ON vmos.order_status_name = hkc.category_name AND hkc.category_type = 'status' LEFT JOIN &#96;#__hikashop_user&#96; AS hkusr ON vmo.virtuemart_user_id = hkusr.user_cms_id WHERE vmo.virtuemart_order_id &gt; 0 GROUP BY vmo.virtuemart_order_id ORDER BY vmo.virtuemart_order_id ASC;

Thanks in advance.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84ODgyMTMtZXJyb3ItaW4tbWlncmF0aW9uLWZyb20tdm0yP3RtcGw9bWFya2Rvd24=) 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: 86593
- Thank you received: 14334
-
-

9 years 10 months ago [\#259072](#259072) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error in migration from VM2](/forum/37-import-export-csv-xls/888213-error-in-migration-from-vm2#259072 "-- HikaShop version -- : 2.6.4 -- Joomla version -- : 3.6.5  I've got a few errors in VM2 migration, most i solved in the vm2.php, now i see the message below when i try to import the orders and i can't find what to do, can you help me?  Got error 28 from storage engine SQL=INSERT IGNORE INTO &#96;#&#95;&#95;hikashop&#95;order&#96; (&#96;order&#95;number&#96;,&#96;order&#95;vm&#95;id&#96;,&#96;order&#95;user&#95;id&#96;,&#96;order&#95;status&#96;,&#96;order&#95;discount&#95;code&#96;,&#96;order&#95;discount&#95;price&#96;,&#96;order&#95;created&#96;,&#96;order&#95;ip&#96;,&#96;order&#95;currency&#95;id&#96;,&#96;order&#95;shipping&#95;price&#96;,&#96;order&#95;shipping&#95;method&#96;,&#96;order&#95;shipping&#95;id&#96;,&#96;order&#95;payment&#95;id&#96;,&#96;order&#95;payment&#95;method&#96;,&#96;order&#95;full&#95;price&#96;,&#96;opmerking&#96;,&#96;order&#95;modified&#96;,&#96;order&#95;partner&#95;id&#96;,&#96;order&#95;partner&#95;price&#96;,&#96;order&#95;partner&#95;paid&#96;,&#96;order&#95;type&#96;,&#96;order&#95;partner&#95;currency&#95;id&#96;,&#96;order&#95;shipping&#95;tax&#96;,&#96;order&#95;discount&#95;tax&#96;) SELECT vmo.order&#95;number,vmo.virtuemart&#95;order&#95;id,hkusr.user&#95;id,hkc.category&#95;name,vmo.coupon&#95;code,vmo.coupon&#95;discount,UNIX&#95;TIMESTAMP(vmo.created&#95;on),vmo.ip&#95;address,hkcur.currency&#95;id,vmo.order&#95;shipment,'vm import',1,0,'vm import',vmo.order&#95;total,vmo.customer&#95;note,UNIX&#95;TIMESTAMP(vmo.modified&#95;on),0,0,0,'sale',0,vmo.order&#95;shipment&#95;tax,0 FROM &#96;#&#95;&#95;virtuemart&#95;orders&#96; AS vmo INNER JOIN &#96;#&#95;&#95;virtuemart&#95;currencies&#96; vmc ON vmo.order&#95;currency = vmc.virtuemart&#95;currency&#95;id INNER JOIN &#96;#&#95;&#95;hikashop&#95;currency&#96; hkcur ON CONVERT(vmc.currency&#95;code&#95;3 USING utf8) = CONVERT( hkcur.currency&#95;code USING utf8) LEFT JOIN &#96;#&#95;&#95;virtuemart&#95;orderstates&#96; AS vmos ON vmo.order&#95;status = vmos.order&#95;status&#95;code LEFT JOIN &#96;#&#95;&#95;hikashop&#95;category&#96; AS hkc ON vmos.order&#95;status&#95;name = hkc.category&#95;name AND hkc.category&#95;type = 'status' LEFT JOIN &#96;#&#95;&#95;hikashop&#95;user&#96; AS hkusr ON vmo.virtuemart&#95;user&#95;id = hkusr.user&#95;cms&#95;id WHERE vmo.virtuemart&#95;order&#95;id &gt; 0 GROUP BY vmo.virtuemart&#95;order&#95;id ORDER BY vmo.virtuemart&#95;order&#95;id ASC;  Thanks in advance.")*

Hi,

From what I could find online, this indicates that MySQL didn't had enough space available in order to run the MySQL:
[ stackoverflow.com/questions/10631387/103...-from-storage-engine](http://stackoverflow.com/questions/10631387/1030-got-error-28-from-storage-engine)
So I would recommend to look into that.

I suppose that VM must have a lot of orders, and the import query doing a JOIN across 6 tables in order to gather all the necessary data from VM must require quite a lot of memory for MySQL.

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

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