One locale code silently killed 92% of a Magento Shopware migration — and the tool reported Done
13,154 orders in. 1 order out. The source was an anonymised copy of a real Magento CE store: 3 websites, 13 store views, 7 languages including Simplified and Traditional Chinese, 7,629 products, 6,960 customers. Shopware's Migration Assistant ran every step green and finished with "The Migration is done". The target database held one order, eight customers and 2,313 products. Orders took the…
On a Magento Shopware migration, a seemingly innocuous issue caused the failure of 92% of the store. Out of 13,154 orders and 6,960 customers, only one order and eight customers made the transition. The target database held 2,313 products, but Shopware's Migration Assistant reported the migration as successful. The issue stemmed from a single string that the tool overlooked, turning Magento's Chinese locale (zh_Hans_CN) into Shopware's zh-Hans-CN.
This mismatch led to a cascade of failures, with the lack of fallback in the converter causing locale entities to be not found, ultimately failing to create sales channels due to missing language IDs. This problem affects any Magento store with Chinese store views or locales containing script subtags, such as sr_Latn_* , az_Latn_* , and uz_Latn_*.
To avoid this issue, a patch should be applied to the converter's fallback or pre-created locale rows should be added with the exact codes emitted by the converter.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
