Close transaction before calling EditFamily

Revit 2020, Dynamo 2.3.2.

I am trying to add a family parameter to a titleblock family.
My node network:

The python scripting that is troubling me:

I would like to understand what is causing this line to generate the warning " File “”, line 54, in
Exception: The document is currently modifiable! Close the transaction before calling EditFamily." whether it occurs before “TransactionManager.Instance.TransactionTaskDone()” or after.

resolved.

sorry. Carry on.