EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 737of/…/profiles/commerce_profile/modules/contrib/entity/includes/entity.wrapper.inc).

EntityMetadataWrapperException: Invalid data value given. Be sure it matches the required data type and format. in EntityDrupalWrapper->set() (line 737of/…/profiles/commerce_profile/modules/contrib/entity/includes/entity.wrapper.inc).

在通过 commerce_xls_import 导入产品的时候,遇到这么个奇葩的 bug.

在逐步减少产品数量,后终于锁定了 node title 中 单词直接通过+连接,没有额外的空格情况下,会导致这种错误.

例如含有"Camera GPS+Free map" 就会报错.

Camera GPS +Free map
Camera GPS+ Free map
Camera GPS + Free map
则不会报错.