# Scripting system.tag.copy() collision policy problem

**URL:** <https://forum.inductiveautomation.com/t/scripting-system-tag-copy-collision-policy-problem/88068>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 29, 2024, 10:50am UTC](https://forum.inductiveautomation.com/t/scripting-system-tag-copy-collision-policy-problem/88068 "2024-03-29T10:50:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michal\_Goralczyk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michal_goralczyk/32/55564_2.png) [@Michal\_Goralczyk](https://forum.inductiveautomation.com/u/Michal_Goralczyk)\
**Post date:** [March 29, 2024, 10:50am UTC](https://forum.inductiveautomation.com/t/scripting-system-tag-copy-collision-policy-problem/88068/1 "2024-03-29T10:50:31Z")

</div>

I have a problem with the system.tag.copy() script. The function works but when I copy a modified UDT it creates another instance/UDT with the suffix 1, 2, 3 etc. colisionPolicy doesn't seem to work and even the default one which should reject copying a UDT with the same name doesn't work and more are still created. What could the problem be?

> **[system.tag.copy | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-tag/system-tag-copy)**
>
> Copies Tags from one folder to another.

```python
udtDef = '[AB]_types_/UDT_PowerLimitHistory'
udtInstances = '[AB]PowerLimitHistory'
tags = [udtDef, udtInstances]

destination = '[default]'

policy = 'o'

system.tag.copy(tags, destination, policy)

```

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/110ad0518841639c4ee224978945eea02b73d049.png)

Regards  
Michał Góralczyk

---

<div class="post-metadata">

**Author:** ![Michal\_Goralczyk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michal_goralczyk/32/55564_2.png) [@Michal\_Goralczyk](https://forum.inductiveautomation.com/u/Michal_Goralczyk)\
**Post date:** [April 24, 2024, 10:18am UTC](https://forum.inductiveautomation.com/t/scripting-system-tag-copy-collision-policy-problem/88068/2 "2024-04-24T10:18:30Z")

</div>

Does anyone know what could be the cause?

---

<div class="post-metadata">

**Author:** ![luuk\_hendriks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/luuk_hendriks/32/68401_2.png) [@luuk\_hendriks](https://forum.inductiveautomation.com/u/luuk_hendriks)\
**Post date:** [October 7, 2024, 12:17pm UTC](https://forum.inductiveautomation.com/t/scripting-system-tag-copy-collision-policy-problem/88068/3 "2024-10-07T12:17:51Z")

</div>

i was wondering if you have found a fix for this problem as i have the same issue.

---

<div class="post-metadata">

**Author:** ![Michal\_Goralczyk](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michal_goralczyk/32/55564_2.png) [@Michal\_Goralczyk](https://forum.inductiveautomation.com/u/Michal_Goralczyk)\
**Post date:** [November 18, 2024, 8:39am UTC](https://forum.inductiveautomation.com/t/scripting-system-tag-copy-collision-policy-problem/88068/4 "2024-11-18T08:39:23Z")

</div>

I think the problem is not solved I use to copy the configuration, delete and reinitialize, create a UDT in a certain provider - it is possible to get around the problem.
