Alarm display path formatting


I have a UDT containing an expression tag, in which I have 7 “Bit State” alarms. I try to change the display path of these alarm with this expression script:

split({itemPath},'/')[1,0] + " " + "CNV" + {InstanceName} + " " + {name}

For some reason this works for some instance, and for other it doesn’t. Also, the last alarm would not accept any expression. When I write something in it and press apply, the expression erase itself. Could someone enlighten me?

Solved. I deleted the alarm, applied the changes, closed the UDT, reopened the UDT, recreated the alarm, and everything worked.