# Alarm added with no name causes annoying errors to remedy

**URL:** <https://forum.inductiveautomation.com/t/alarm-added-with-no-name-causes-annoying-errors-to-remedy/78834>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 6, 2023, 9:34pm UTC](https://forum.inductiveautomation.com/t/alarm-added-with-no-name-causes-annoying-errors-to-remedy/78834 "2023-09-06T21:34:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacque\_trahan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jacque_trahan/32/58886_2.png) [@jacque\_trahan](https://forum.inductiveautomation.com/u/jacque_trahan)\
**Post date:** [September 6, 2023, 9:34pm UTC](https://forum.inductiveautomation.com/t/alarm-added-with-no-name-causes-annoying-errors-to-remedy/78834/1 "2023-09-06T21:34:32Z")

</div>

I solved this issue and did not see it in the forms, unless I missed it, but wanted to make others aware just in case.

I was updating alarms and making sure I did not have any overrides that were not supposed to be there. (Old way was to update configs using all the configs, I have grown a bit)

That said I forgot to put the alarm name in the alarm build and several things happened:

1. All the alarms disappeared and reappear randomly.
2. You can not delete it from the designer
3. Solve this by download the Json file and then manually deleting the no name alarms and importing it back  
4 I get this error message:

> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

The code below is the set up, I added the tag name as need but the part I was missing will look like this  
\*\* alarm['name'] = alarmName \*\*.  
If missing the problem will occur again.

```auto
	for browse in browseTags:
		tagPath = browse['fullPath']
		tagName = browse['name']
		Topfolder = str(tagPath).rsplit("/",1)[0]
		configs = system.tag.getConfiguration(tagPath, False)
		# iterate through the UDTs
		for config in configs:
	        # get alarms for current config
			configAlarms = config.get('alarms',[])
	        # iterate through each alarm one by one
			for configAlarm in configAlarms:
	            #varibale set up for SetpointA
				alarmName = configAlarm.get('name',"")
				setPointA = "[.]" + tagName + "." + alarmName + "_Setpoint"
				setPointAValue = {"bindType": "Expression","value": setPointA}
	            # conditions if needed
				if ("Float" in str(browse['dataType']) or "Int" in str(browse['dataType'])) and (str(browse['name']) != "DIGITAL" and str(browse['name']) != "ANALOG_VALUE" and alarmName != "OUT_OF_RANGE"):
					alarm = {}
					alarm['setpointA'] = setPointAValue
					alarm['displayPath'] = displayPath
					**alarm['name'] = alarmName**
					tag = [{
							'alarms':[alarm],
							'name':tagName
							}]
		            # after all alarms have config chnages on the current path update them and move to the next tag path
					system.tag.configure(Topfolder, tag, collisionPolicy)

```

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 6, 2023, 10:31pm UTC](https://forum.inductiveautomation.com/t/alarm-added-with-no-name-causes-annoying-errors-to-remedy/78834/2 "2023-09-06T22:31:14Z")

</div>

A null pointer exception is always a bug. You should report this to support.

---

<div class="post-metadata">

**Author:** ![jacque\_trahan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jacque_trahan/32/58886_2.png) [@jacque\_trahan](https://forum.inductiveautomation.com/u/jacque_trahan)\
**Post date:** [September 7, 2023, 1:57pm UTC](https://forum.inductiveautomation.com/t/alarm-added-with-no-name-causes-annoying-errors-to-remedy/78834/3 "2023-09-07T13:57:27Z")

</div>

Thank you. I have sent this to support.
