Email Notification Profile Error: 'String', cannot be converted to the type 'Integer' which is expected by the property 'retryDelay'

v8.1.31

This error has occurred intermittently on the last four Ignition versions. The retryDelay property is definitely an Integer.

Suggestions?

Thank you.

com.inductiveautomation.ignition.common.config.PropertyTypeException: Value 'Label: {label} Name: {name} State: {state} Priority: {priority} Path: {displayPathOrSource} --- Event State: {eventState} Event Time: {eventTime} Event Value: {eventValue} --- Active Time: {activeTime} Clear Time: {clearTime} Ack Time: {ackTime} Acked by: {ackUserName}', of type 'String', cannot be converted to the type 'Integer' which is expected by the property 'retryDelay'.
at com.inductiveautomation.ignition.common.config.PropertyUtils.coerce(PropertyUtils.java:46)
at com.inductiveautomation.ignition.common.config.BasicPropertySet.get(BasicPropertySet.java:89)
at com.inductiveautomation.ignition.common.config.AbstractExtendedPropertySet.getImpl(AbstractExtendedPropertySet.java:56)
at com.inductiveautomation.ignition.common.config.AbstractExtendedPropertySet.get(AbstractExtendedPropertySet.java:73)
at com.inductiveautomation.ignition.common.config.DelegatePropertySet.get(DelegatePropertySet.java:39)
at com.inductiveautomation.ignition.common.config.PropertyValueSource.getNonNull(PropertyValueSource.java:78)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.sendMessage(EmailNotificationProfile.java:832)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.buildAndMaybeSendMessage(EmailNotificationProfile.java:807)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile$EmailTask.run(EmailNotificationProfile.java:721)
at com.inductiveautomation.ignition.alarming.notification.email.EmailNotificationProfile.lambda$sendNotification$0(EmailNotificationProfile.java:535)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

x

You appear to have something inadvertently setting an entire label/display path/etc expression to the 'retryDelay' property. Do you use any custom code to create tags?

1 Like

That is the Message property (see below). I can't see how it gets mixed up with the retry delay. No, no custom code to create tags, vanilla out of the box Ignition tags :slight_smile:

Label:       {label}
Name:        {name}
State:       {state}
Priority:    {priority}
Path:        {displayPathOrSource}
---
Event State: {eventState}
Event Time:  {eventTime}
Event Value: {eventValue}
---
Active Time: {activeTime}
Clear Time:  {clearTime}
Duration:    {activeDuration}
Ack Time:    {ackTime}
Acked by:    {ackUserName}
---
Project:     {projectName}
Pipeline:    {pipelineName}

image

This is line 832, in the function sendMessage where the error is being thrown:

int delay = Math.max(0, notificationContext.getNonNull(EmailProperties.RETRY_DELAY, 0));

Something is setting the retry_delay key to Value 'Label: {label} Name: {name} State: {state} Priority: {priority} Path: {displayPathOrSource} --- Event State: {eventState} Event Time: {eventTime} Event Value: {eventValue} --- Active Time: {activeTime} Clear Time: {clearTime} Ack Time: {ackTime} Acked by: {ackUserName}'. While it's absolutely possible it's a bug... Occam's razor (and the lack of other customers reporting it :wink:) suggests that it's something unique to your system. Maybe only a single tag or something, somehow. I'd recommend getting in touch with support if you aren't able to find anything.

Understood. Thank you @PGriffith .