# Dealing with non-existent tags in UDTs and Templates

**URL:** <https://forum.inductiveautomation.com/t/dealing-with-non-existent-tags-in-udts-and-templates/43176>\
**Category:** Ignition\
**Created:** [February 9, 2021, 2:07pm UTC](https://forum.inductiveautomation.com/t/dealing-with-non-existent-tags-in-udts-and-templates/43176 "2021-02-09T14:07:42Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [February 11, 2021, 6:58pm UTC](https://forum.inductiveautomation.com/t/dealing-with-non-existent-tags-in-udts-and-templates/43176/10 "2021-02-11T18:58:24Z")

</div>

I avoid using the `tag()` function now as I always hear @pturmel 's voice in my head telling me it’s bad for performance 😞 tbh though, I haven’t had any issues with using it in the past, but that doesn’t mean it wouldn’t start to cause issues the more components you add. Better to build optimisations in rather than have to refactor once the bottleneck hits 🤷‍♂️

Edit: Oh, I didn’t realise he replied here as well, haha. I’m also a huge proponent of not using UDTType properties on templates, and as Phil said, pass in a tagpath instead [To UDT or not to UDT. That is the question - #15 by nminchin](http://forum.inductiveautomation.com/t/to-udt-or-not-to-udt-that-is-the-question/32703/15)

---

_[View the full topic](https://forum.inductiveautomation.com/t/dealing-with-non-existent-tags-in-udts-and-templates/43176)._
