How to prevent recursion when setting a data value for a user in rules? I have a rule that is triggered on the event After updating an existing user account.  The rule performs an action, Set a data value, that changes one of the values of the user account fields.

However, doing this causes the user account to be saved again, which triggers After updating an existing user account a second time.  This causes some of my other rules that are triggered after updating a user account (such as those for sending notification e-mails) to be triggered twice.

I know this Set a data value rule is the issue because when I disable it, the account is only sent once, and the other rules that send notifications only send a single notification.

Is there a way to avoid this (single) recursion when setting a data value with a rule?
Your question seems like a variation of the question 'Why is my rule that reacts on event &quot;After updating an existing user account&quot; firing twice?'. The accepted answer in that question might help to understand your issue (what's causing it) also, ie:


  some other module code is calling a user_save on hook_user_update triggering the rules event a second time.


That question also has another answer with a very interesting workaround, with an image which looks like so (a picture is worth more then 1000 words):