# Alarm 'Label' dynamic binding not working. Displays 'Name' instead of Label

**URL:** <https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [August 26, 2019, 12:04am UTC](https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748 "2019-08-26T00:04:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [August 26, 2019, 12:04am UTC](https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748/1 "2019-08-26T00:04:48Z")

</div>

Using alarms generated from a UDT, the alarm ‘Label’ is dynamically bound in the alarm configuration, however, the Alarm Status Table will not display anything other than the ‘Name’. Even trying to bind the ‘Label’ to {PathToTag} does not change the value of Label on the Alarm Status Table.

I’ve seen numerous topics created on this, all without any replies.  
[Here](http://forum.inductiveautomation.com/t/alarm-label-expression-binding-randomly-loses-data/25892), [another one](http://forum.inductiveautomation.com/t/alarm-label-binding-to-tag-metadata/19243), and [yet another](http://forum.inductiveautomation.com/t/alarm-journal-table-label-field-displays-incorrectly/18929) (which I can’t help but think might be related, even though it’s for an alarm Journal).

Has anyone else experienced this issue? Is it a bug? It would be great to find out since ‘Label’ is the only way to create a meaningful alarm description from a UDT being that ‘Name’ ends up being too generic.

Ignition 7.9.10 (b2018112821)

---

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [August 26, 2019, 12:55am UTC](https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748/2 "2019-08-26T00:55:40Z")

</div>

After a bit more experimenting, I found that this anomaly is only present when using ‘Expression’ for the binding. I was able to bind to a single ‘UDT Parameter’ successfully.

Although this is not the desirable outcome, it will suffice for now. I’m trying to use an expression to build a slightly more complex alarm label.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/826227fa67979b46012002843577c8eb005fed59.png)

---

<div class="post-metadata">

**Author:** ![Tim.Johnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tim.johnson/32/10597_2.png) [@Tim.Johnson](https://forum.inductiveautomation.com/u/Tim.Johnson)\
**Post date:** [August 26, 2019, 3:17pm UTC](https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748/3 "2019-08-26T15:17:56Z")

</div>

I’m posting this solution just to make sure other users find the answers in case they come across this issue. I’m assuming no one wants to reply to this issue because it’s so simple.

UDT Parameters are handled a bit differently when in expressions. You’ll find a somewhat obscure description of this in the [“Data Type Parameters in Expressions”](https://docs.inductiveautomation.com/display/DOC/Data+Type+Parameters+in+Expressions) User Manual under “Syntax”.

In a nutshell, because this Alarm Label script was within a Data Type (UDT) expression, the parameter required single (or double) quotes containing the parameter (see image below). Apparently, Ignition handles this automatically when selecting a single parameter as an Alarm Label as shown in my previous reply.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/e/e70dd27ff76454a35edd11ab19f13667671c46ac.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 26, 2019, 7:26pm UTC](https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748/4 "2019-08-26T19:26:49Z")

</div>

The uncertainty/confusion here is part of the reason UDT parameter evaluation and lookup works differently in 8.0. Basically, in 7.9, UDT parameters are substituted into the UDT’s configuration (_before_ it is built) as raw strings - so if you’re trying to build a dynamic value, it must still compile to a valid expression.

The [migration guide](https://docs.inductiveautomation.com/display/DOC80/Ignition+8+Upgrade+Guide#Ignition8UpgradeGuide-UDTParameterUsage) goes into this in more detail - in all cases (besides tag event scripts) the migration should happen automatically if you’ve got it set up in 7.9.

And, for what it’s worth, you’re definitely not the first person to run into this behavior - but thanks for coming back and posting the solution for anyone else searching in the future.

---

<div class="post-metadata">

**Author:** ![Controller](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/controller/32/10243_2.png) [@Controller](https://forum.inductiveautomation.com/u/Controller)\
**Post date:** [September 3, 2019, 4:40pm UTC](https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748/5 "2019-09-03T16:40:28Z")

</div>

Saw you posted to my old question.

My work around was to add this to the label binding: [.]_tagname_.Documentation  
Replace _tagname_ with the actual name.

And import my tags as a CSV with the appropriate text I wanted in the Documentation column.

---

<div class="post-metadata">

**Author:** ![mbhagotra](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mbhagotra](https://forum.inductiveautomation.com/u/mbhagotra)\
**Post date:** [January 27, 2020, 5:04pm UTC](https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748/6 "2020-01-27T17:04:55Z")

</div>

I tried this in Ignition 8.0.7 as my alarms are set up as a UDT. So I used **[.]{TagName}.Documentation** but the Label just showed up as “Alarm” even though the documentation field contained “test”.

Also just tried **{TagName}.Documentation** and **[.].Documentation** and the result was the same.

---

<div class="post-metadata">

**Author:** ![dlb](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@dlb](https://forum.inductiveautomation.com/u/dlb)\
**Post date:** [March 19, 2020, 9:40pm UTC](https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748/7 "2020-03-19T21:40:55Z")

</div>

Has this not been fixed? I looked through the release notes for 8.0.9 but did not see anything. For my project this is a huge inconvenience. My alarm labels are displaying the name when using expressions.

{Description} + " Above " + {[.]HI\_HI\_Alarm\_Setpoint} + " " + {Units} + " Hi Hi Alarm"

---

<div class="post-metadata">

**Author:** ![doshinikhil](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@doshinikhil](https://forum.inductiveautomation.com/u/doshinikhil)\
**Post date:** [April 24, 2020, 2:28pm UTC](https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748/8 "2020-04-24T14:28:33Z")

</div>

Ignition v8.0.9  
Windows OS - 2012 R2

Hello,

I have configured alarm in UDT and using parameter for Label. I am facing the same issue.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8b825a9905d0e74d45a82da28abdb0757f0f6210.png)

In Alarm Status, it is showing correctly but when you go to alarm history, it looks like it doesn’t pass parameter value.

Alarm Status

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0e6703501543c2d90807f020607e8ce804b47583.png)

Alarm History

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/dd7807b95e5ec785b60a1902d1c960dfed0219ed.png)

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [April 24, 2020, 2:44pm UTC](https://forum.inductiveautomation.com/t/alarm-label-dynamic-binding-not-working-displays-name-instead-of-label/27748/9 "2020-04-24T14:44:34Z")

</div>

In the alarm journal configuration you need to select this checkbox:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/bf4f1db72d720ab581c82ecf88c4fa22a0057eb0.png)

Once that is selected then it will start logging that data to the database.

This is a database concentric item, so it won’t populate old data, just new data as it goes into the journal.
