2015-12-29 35 views
0

在我的CSV爲Magmi,每個產品設置爲50或更多的類別。Magmi在一個產品中的巨大類別

CSV列"categories"看起來像這樣的值:

SQL Error: 1406 Data too long for column 'value' at row X (table catalog_category_entity_varchar) 

有:

"Cartridge Brother/Brother DCP/DCP 365 CN,Cartridge Brother/Brother DCP/DCP 365 CN,Cartridge Brother/Brother DCP/DCP 373 CW,Cartridge Brother/Brother DCP/DCP 375 CW,Cartridge Brother/Brother DCP/DCP 377 CW,Cartridge Brother/Brother DCP/DCP 383 C,Cartridge Brother/Brother DCP/DCP 385 C,Cartridge Brother/Brother DCP/DCP 387 C,Cartridge Brother/Brother DCP/DCP 395 CN,Cartridge Brother/Brother DCP/DCP 145 C,Cartridge Brother/Brother DCP/DCP 6690 CW,Cartridge Brother/Brother DCP/DCP 585 CW,Cartridge Brother/Brother DCPJ/DCPJ 715 W,Cartridge Brother/Brother DCP/DCP 163 C,Cartridge Brother/Brother DCP/DCP 165 C,Cartridge Brother/Brother DCP/DCP 167 C,Cartridge Brother/Brother DCP/DCP 185 C,Cartridge Brother/Brother DCP/DCP 195 C,Cartridge Brother/Brother DCP/DCP 197 C,Cartridge Brother/Brother MFC/MFC 5490 CN,Cartridge Brother/Brother MFC/MFC 5890 CN,Cartridge Brother/Brother MFC/MFC 5895 CW,Cartridge Brother/Brother MFC/MFC 255 CW,Cartridge Brother/Brother MFC/MFC 250 C,Cartridge Brother/Brother MFC/MFC 290 C,Cartridge Brother/Brother MFC/MFC 295 CN,Cartridge Brother/Brother MFC/MFC 297 C,Cartridge Brother/Brother MFC/MFC 6490 CW,Cartridge Brother/Brother MFC/MFC 990 CW,Cartridge Brother/Brother MFC/MFC 6690 CW,Cartridge Brother/Brother MFC/MFC 6890 CDW,Cartridge Brother/Brother MFC/MFC 6890 CW,Cartridge Brother/Brother MFCJ/MFCJ 615 W,Cartridge Brother/Brother MFC/MFC 795 CW,Cartridge Brother/Brother MFC/MFC 490 CW,Cartridge Brother/Brother MFC/MFC 790 CW,Cartridge Brother/Brother DCP/DCP 160 Series,Cartridge Brother/Brother DCP/DCP 190 Series,Cartridge Brother/Brother DCP/DCP 370 Series,Cartridge Brother/Brother DCP/DCP 380 Series,Cartridge Brother/Brother MFC/MFC 250 Series,Cartridge Brother/Brother MFC/MFC 290 Series,Cartridge Brother/Brother MFC/MFC 490 CN,Cartridge Brother/Brother MFC/MFC 490 Series,Cartridge Brother/Brother MFC/MFC 790 Series"; 

有了這個,我在MAGMI進口 「在飛行類創作者」 過程中遇到的問題是varchar(255)中名爲「value」的列。當我將這種格式更改爲text(2000)時,它將開始在另一部分中創建Magento錯誤,這似乎是永無止境的故事和一個不好的解決方案。

我發現每個類別路徑都不那麼長。它有標準長度約100個字符。但Magmi試圖將所有類別保存到MySQL中以「值」列字段。爲什麼?我可以改變這個嗎?對於表中的每一行應保存只有一個類別的路徑,如「墨盒兄弟/兄弟DCP/DCP 190系列」

我如何防止保存所有類別Magento表中的一行catalog_category_entity_varchar

任何更好的解決方案,以產品的類別導入一堆?

回答

0

解決了,我使用舊類別早午餐分隔符「,」,在我的版本的飛行類別創建者應該是「;;」。

相關問題