# Problem accessing tags

**URL:** <https://forum.inductiveautomation.com/t/problem-accessing-tags/111956>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [November 5, 2025, 12:02pm UTC](https://forum.inductiveautomation.com/t/problem-accessing-tags/111956 "2025-11-05T12:02:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francisco\_Rebelo](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Francisco\_Rebelo](https://forum.inductiveautomation.com/u/Francisco_Rebelo)\
**Post date:** [November 5, 2025, 12:02pm UTC](https://forum.inductiveautomation.com/t/problem-accessing-tags/111956/1 "2025-11-05T12:02:39Z")

</div>

Hi guys,

I’m having a problem with my events on buttons and similar things.

I had this script working correctly, but all of a sudden it stopped working and now I get this message.

I’m using Ignition 8.1.41.

![image](https://us1.discourse-cdn.com/inductiveautomation/optimized/3X/8/d/8d765c0e87a83894d2f7628f87f57f34db1aec7a_2_690x52.png)

Any help is much appreciated, as otherwise I’ll have to change the name of a large number of tags…

Best regards

---

<div class="post-metadata">

**Author:** ![Samuel\_Sueur](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Samuel\_Sueur](https://forum.inductiveautomation.com/u/Samuel_Sueur)\
**Post date:** [November 5, 2025, 12:11pm UTC](https://forum.inductiveautomation.com/t/problem-accessing-tags/111956/2 "2025-11-05T12:11:09Z")

</div>

Hm, I’m surprised this used to work.

I would transform your line like so, and see if it works:

```python
self.view.custom['udt_modo_1']['Modo_1-C1_Ciclo_N-Modo'] = False

```

The error basically says that the dashes you have in your line are interpreted as subtraction signs, which definitely makes sense.

---

<div class="post-metadata">

**Author:** ![Francisco\_Rebelo](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Francisco\_Rebelo](https://forum.inductiveautomation.com/u/Francisco_Rebelo)\
**Post date:** [November 5, 2025, 12:19pm UTC](https://forum.inductiveautomation.com/t/problem-accessing-tags/111956/3 "2025-11-05T12:19:32Z")

</div>

That’s what I thought. The funny thing is, if I select the tag using the “Browse Properties” button, it automatically builds the path as shown.

Anyway, the suggestion you made seems to have worked.

Now I know not to use dashes in tag names in the future.

Thanks!

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 5, 2025, 12:23pm UTC](https://forum.inductiveautomation.com/t/problem-accessing-tags/111956/4 "2025-11-05T12:23:20Z")

</div>

I think the take away should instead be not to use UDT Type _params_. They cause more headaches than they're worth. I use both spaces and dashes (occasionally) in my tag names with no issues
