【发布时间】:2014-07-15 23:12:52
【问题描述】:
尝试使用 Magmi 导入 CSV 文件后,我在 Magmi 中遇到以下错误:
error 1:SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'attribute_id' cannot be null - INSERT INTO `catalog_product_super_attribute` (`product_id`,`attribute_id`,`position`) VALUES (?,?,?) error 2:SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'attribute_id' cannot be null - ERROR ON RECORD #10 warning:Skus imported KO:1/10
我束手无策,已经用谷歌搜索到世界尽头的解决方案,但一直找不到。我究竟做错了什么?我将在下面发布我的上传表:
https://i.imgur.com/eVCVoKt.png
有人可以帮我理解我做错了什么吗?
【问题讨论】:
-
是您的 config_color 和 config_size 属性: - 全局范围 - 下拉列表 - 用于可配置 这是在可配置属性列中使用它们的必要条件。
-
您的文件中与我的不同的是,我将“/”作为可配置属性的分隔符。我建议您手动创建产品并使用标准 Magento 导出来导出它们。这将为您提供正确的列标题,然后您可以相应地修改您的 csv 文件。
标签: magento magmi configurable-product