I have a triggered rule set up so that when I create an Event (Evenement) type node, it automatically creates a Gallery node,fills in the node reference in that Gallery node and then schedules the Gallery node to be published on the date of the event. However, I get the following error:

An error occured during rule evaluation. It follows the evaluation log:
0 ms "After saving new content" has been invoked.
0.108 ms Executing the rule "Create gallery from event" on rule set "After saving new content"
0.305 ms Condition "Created content is Evenement" evaluated to TRUE.
3.008 ms Loaded variable "content's author"
3.092 ms Action execution: "Add new content"
3.435 ms Successfully added the new variable "new content of type gallery"
4.026 ms Action execution: "Populate new content of type gallery's field 'field_event_ref'"
14.666 ms Action execution: "Schedule "Publish content""
<b>14.8 ms Packing arguments for scheduling the rule set rules_publish_content failed.</b>
14.886 ms Saved variable new content of type gallery of type node.
     93.329 ms "After saving new content" has been invoked.
     93.456 ms Not executing the rule "Create gallery from event" on rule set "After saving new content" to prevent recursion.
     93.546 ms Evaluation of "After saving new content" has been finished.
98.457 ms Evaluation of "After saving new content" has been finished.

When I simply execute the "Publish content" rule set and pass it the Gallery node as an argument, it publishes it without a problem. I've tried supplying a simple time to the scheduler (+1 day) instead of the datetime-token of the event node's date, but the error remains.

Any help would be appreciated.

Comments

klausi’s picture

Status: Needs review » Active

no patch here so it's active

tovica’s picture

me too

from : http://drupal.org/node/517674

i get :
An error occured during rule evaluation. It follows the evaluation log:

* 0 ms "Content is going to be saved" has been invoked.
* 0.652 ms Executing the rule "pada saat buyer create content tenders" on rule set "Content is going to be saved"
* 2.621 ms Loaded variable "acting user"
* 3.314 ms Condition "User has role(s)" evaluated to FALSE.
* 3.419 ms Executing the rule "change role" on rule set "Content is going to be saved"
* 3.619 ms Condition "Saved content is Profile" evaluated to FALSE.
* 3.719 ms Executing the rule "ganti roles" on rule set "Content is going to be saved"
* 3.933 ms Loaded variable "unchanged content"
* 4.052 ms Condition "Saved content's field 'field_profile_type_member' has been changed" evaluated to FALSE.
* 4.142 ms Executing the rule "pada saat akan save new content profile" on rule set "Content is going to be saved"
* 4.339 ms Condition "Saved content is Profile" evaluated to FALSE.
* 4.428 ms Executing the rule "publish content with sched" on rule set "Content is going to be saved"
* 4.614 ms Condition "Saved content is News" evaluated to TRUE.
* 24.163 ms Action execution: "Publish content {rule set}"
* 25.028 ms Packing arguments for scheduling the rule set rules_publish_content failed.
* 25.746 ms Evaluation of "Content is going to be saved" has been finished.

fago’s picture

Category: bug » support

probably you try to schedule a rule set with a node that is not yet saved.

jday’s picture

Is there a way to trigger a rule for content that might be new OR updated? if I use the 'content is going to be saved' sometimes it works and sometimes I get the failure notice like above. Is making duplicate rules, one for 'when new content is saved' and one for 'when content is updated' the only way to get it to work every time?

Will there be a 'when content is saved' option in the future that would cover new and updated content?

schultetwin’s picture

Agree with jday's last point.
Subscribing.

sd1074’s picture

+1

watman’s picture

+1 I would like to see this feature

tr’s picture

Status: Active » Closed (outdated)

Drupal 6 is no longer supported. If this is still a problem in the current version of Rules please open a new issue.