I am trying to create product attributes for my product in Magento.
I am trying to use the Multi Data reference to accomplish this with no sucess.
My value displays:
[{key='color', value='3'}]
When submitting with the above I get an error:
Exception stack is:
1. Expression Evaluator "registry" with expression "[{key='color', value='3'}]" returned null but a value was required. (org.mule.api.expression.ExpressionRuntimeException)
org.mule.expression.RegistryExpressionEvaluator:105 (
http://www.mulesoft.org/docs/site/cur...)
2. Failed to invoke createProduct. Message payload is of type: String (org.mule.api.MessagingException)
org.mule.module.magento.processors.CreateProductMessageProcessor:200 (
http://www.mulesoft.org/docs/site/cur...)
--------------------------------------------------------------------------------
Root Exception stack trace:
org.mule.api.expression.ExpressionRuntimeException: Expression Evaluator "registry" with expression "[{key='color', value='3'}]" returned null but a value was required.
at org.mule.expression.RegistryExpressionEvaluator.evaluate(RegistryExpressionEvaluator.java:105)
at org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:310)
at org.mule.expression.DefaultExpressionManager.evaluate(DefaultExpressionManager.java:229)
+ 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
********************************************************************************
When I add a hash to make #[{key='color', value='3'}] I get the below error
Message : Could not find a transformer to transform "SimpleDataType{type=[Ljava.lang.Object;, mimeType='*/*'}" to "SimpleDataType{type=[Lcom.magento.api.AssociativeMultiEntity;, mimeType='*/*'}".
Any help would be much appreciated