Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
rbayliss CreditAttribution: rbayliss commentedHey 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?
Comment #2
rbayliss CreditAttribution: rbayliss commentedHaven'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.