# UDT script reporting specified tag does not exist

**URL:** <https://forum.inductiveautomation.com/t/udt-script-reporting-specified-tag-does-not-exist/20632>\
**Category:** Ignition\
**Created:** [November 7, 2018, 6:10pm UTC](https://forum.inductiveautomation.com/t/udt-script-reporting-specified-tag-does-not-exist/20632 "2018-11-07T18:10:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![richard.d.white](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@richard.d.white](https://forum.inductiveautomation.com/u/richard.d.white)\
**Post date:** [November 7, 2018, 6:10pm UTC](https://forum.inductiveautomation.com/t/udt-script-reporting-specified-tag-does-not-exist/20632/1 "2018-11-07T18:10:24Z")

</div>

Hello! I have a question which I’m sure is very basic…

I am learning how to use UDTs and templates. So far so good with one exception. When I try to edit a UDT via script script editor (embedded in a button) the reply I’m getting is “the specified tag does not exist”. To be more specific here is a simplified version of what I’m trying to do:

tagpath = event.source.parent.IrrigationInterface.Memory.Hour  
system.tag.write(tagpath,1)

Doing just the above triggers a tag does not exist error  
I pulled in event.source.parent.IrrigationInterface.Memory.Hour straight from the property reference button for the UDT. Is the issue that this is being considered a property and not a tag? If so, how do I reformat or reference this as a tag?

Thank you all in advance for your advice here. I’m sure this is something simple… the issue is my going through learning curve!

---

<div class="post-metadata">

**Author:** ![bpreston](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@bpreston](https://forum.inductiveautomation.com/u/bpreston)\
**Post date:** [November 7, 2018, 6:22pm UTC](https://forum.inductiveautomation.com/t/udt-script-reporting-specified-tag-does-not-exist/20632/2 "2018-11-07T18:22:27Z")

</div>

The system.tag.write is to write into a tag directly. Your trying to write into a parameter of the template. That parameter may be bound to a tag but writing to it is different than to a tag.

Try going direct in with:

event.source.parent.IrrigationInterface.Memory.Hour = 1

---

<div class="post-metadata">

**Author:** ![richard.d.white](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@richard.d.white](https://forum.inductiveautomation.com/u/richard.d.white)\
**Post date:** [November 7, 2018, 6:31pm UTC](https://forum.inductiveautomation.com/t/udt-script-reporting-specified-tag-does-not-exist/20632/3 "2018-11-07T18:31:22Z")

</div>

This worked!!! Thank you for such a fast response!!!
