I've used Create a new entity
for the Rules event After updating existing content
, but nothing happens.
Is it a bug?
Update:
Here is an export of my rule:
{ "rules_update_order" : {
"LABEL" : "Update Order",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules" ],
"ON" : { "node_update" : [] },
"DO" : [
{ "entity_create" : {
"USING" : {
"type" : "comment",
"param_subject" : "Something",
"param_node" : [ "node" ],
"param_author" : [ "node:author" ],
"param_comment_body" : { "value" : { "value" : "Something", "format" : "filtered_html" } }
},
"PROVIDE" : { "entity_created" : { "entity_created" : "Created entity" } }
}
}
]
}
}
It is a very simple rule. And I have a lot of rules which are easily fired apart from this one.
Some more Debugging information (contained in my Rules Logging):
0 ms Rule Update Order fires.
0.873 ms Evaluating the action entity_create.
33.717 ms Unable to create entity comment": Invalid data value given.
Be sure it matches the required data type and format.
36.05 ms Unable to evaluate action entity_create.
36.099 ms Rule Update Order has fired.