# Python node: transaction weird behavior

**URL:** <https://forum.dynamobim.com/t/python-node-transaction-weird-behavior/309>\
**Category:** Packages\
**Created:** [April 23, 2014, 5:56am UTC](https://forum.dynamobim.com/t/python-node-transaction-weird-behavior/309 "2014-04-23T05:56:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julien\_Benoit1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/julien_benoit1/32/29558_2.png) [@Julien\_Benoit1](https://forum.dynamobim.com/u/Julien_Benoit1)\
**Post date:** [April 23, 2014, 5:56am UTC](https://forum.dynamobim.com/t/python-node-transaction-weird-behavior/309/1 "2014-04-23T05:56:28Z")

</div>

Hi folks, I’m not sure if this is an issue with Python, Revit API or Dynamo, but I have this:

open Revit project, start Dynamo, open definition, run definition: all is fine and running.

make another hit on the Run command: Python node returns an exception saying that a transaction is needed…why not the first time?

closing Revit, run again, works at first…weird or logical?

---

<div class="post-metadata">

**Author:** ![Michael\_Kirschner1](https://avatars.discourse-cdn.com/v4/letter/m/46a35a/32.png) [@Michael\_Kirschner1](https://forum.dynamobim.com/u/Michael_Kirschner1)\
**Post date:** [April 23, 2014, 10:44am UTC](https://forum.dynamobim.com/t/python-node-transaction-weird-behavior/309/2 "2014-04-23T10:44:24Z")

</div>

What are you doing in your python node?

---

<div class="post-metadata">

**Author:** ![Julien\_Benoit1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/julien_benoit1/32/29558_2.png) [@Julien\_Benoit1](https://forum.dynamobim.com/u/Julien_Benoit1)\
**Post date:** [April 23, 2014, 11:07am UTC](https://forum.dynamobim.com/t/python-node-transaction-weird-behavior/309/3 "2014-04-23T11:07:56Z")

</div>

CopyElements method. get stuff from linked file and paste in the active document. first try works great, second ask for transaction.
