# Python Transaction

**URL:** <https://forum.dynamobim.com/t/python-transaction/51360>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 3, 2020, 11:36am UTC](https://forum.dynamobim.com/t/python-transaction/51360 "2020-06-03T11:36:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abfletcher](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/abfletcher/32/45591_2.png) [@abfletcher](https://forum.dynamobim.com/u/abfletcher)\
**Post date:** [June 3, 2020, 11:36am UTC](https://forum.dynamobim.com/t/python-transaction/51360/1 "2020-06-03T11:36:24Z")

</div>

Hi

I always get \*  
Starting a new transaction is not permitted…\* whenever I add transactions inside a python script. How do I prevent this and name transactions so it is clear in the undo/history of Revit commands.

---

<div class="post-metadata">

**Author:** ![MJB-online](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mjb-online/32/24884_2.png) [@MJB-online](https://forum.dynamobim.com/u/MJB-online)\
**Post date:** [June 3, 2020, 12:12pm UTC](https://forum.dynamobim.com/t/python-transaction/51360/2 "2020-06-03T12:12:57Z")

</div>

Hi @abfletcher,

Maybe this link can help you.  
[https://forum.dynamobim.com/t/parameters-script-issue/49759/4?u=mjb-online](https://forum.dynamobim.com/t/parameters-script-issue/49759/4)
