# \[IGN-8411\] Curly brackets (braces) on commented line in udt instance script causes script to fail silently

**URL:** <https://forum.inductiveautomation.com/t/ign-8411-curly-brackets-braces-on-commented-line-in-udt-instance-script-causes-script-to-fail-silently/79124>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [September 14, 2023, 1:30am UTC](https://forum.inductiveautomation.com/t/ign-8411-curly-brackets-braces-on-commented-line-in-udt-instance-script-causes-script-to-fail-silently/79124 "2023-09-14T01:30:29Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![tyler.bennett](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@tyler.bennett](https://forum.inductiveautomation.com/u/tyler.bennett)\
**Post date:** [April 11, 2024, 8:46pm UTC](https://forum.inductiveautomation.com/t/ign-8411-curly-brackets-braces-on-commented-line-in-udt-instance-script-causes-script-to-fail-silently/79124/14 "2024-04-11T20:46:22Z")

</div>

@Kevin.Herron, any updates on resolution for this bug?

Looks to be an issue others are still bumping into.

> [@\[IGN-8411\] Value Changed Script Error - Error Expanding paramater referencejava.lang.NullPointerException](https://forum.inductiveautomation.com/t/value-changed-script-error-error-expanding-paramater-referencejava-lang-nullpointerexception/88703):
>
> This error only appears when I am using a UDT, what exactly is causing the error? What can be done to fix or produce results I'm looking for within a UDT? I have tried commenting out the lines in which I utilize curly brackets but that does not fix the error. Here is the code - current\_value = system.tag.readBlocking(["[.]Current Value"])[0].value #body = "Current Value = {current\_val}".format(current\_val = current\_value) body = '' if currentValue.value == 'Upper Alert': body = body + '\…

Even failing with an informative error in the log would be better than failing silently.

Also, I reported a bug where a commented-out line containing a parameter reference in a named query causes the query execution fail. Perhaps not directly related but similar, maybe due to similar practice/implementation in resolving parameter references without consideration of lines that are commented out.

---

_[View the full topic](https://forum.inductiveautomation.com/t/ign-8411-curly-brackets-braces-on-commented-line-in-udt-instance-script-causes-script-to-fail-silently/79124)._
