FamilyDocument.SetFormuale Node Error

I am setting up parameter formulae for multiple families using FamilyDocument.SetFormuale node its throwing and error called A sub transaction can only be active inside the open transaction error. Please can anybody help me to understand this error and Let me know how to resolve this?

And i noticed only first family formulae has been changed after 2clicks. Is it possible in single click of RUN?

Try this out. Only uses Crumple: