I receive this whenever I try to save a new product with tokens in the SKU. It appears that the entities are not being sent over correctly, but I can't find it in the commerce_autosku module.

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

I managed to bypass the issue by selecting random for the SKU. However, I'd love to tackle this if I can find where this is sent.

Comments

rbayliss’s picture

Hey emarchak,
The tokens are built in commerce_autosku.commerce.inc's commerce_autosku_commerce_product_presave(). I wonder if this is related to a specific token that isn't validating?

rbayliss’s picture

Status: Active » Closed (cannot reproduce)

Haven't been able to duplicate this, and it doesn't sound like it's been an issue for anyone else. Closing for now, but feel free to open it again if you have some more info.