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

**URL:** <https://forum.inductiveautomation.com/t/email-notification-profile-error-string-cannot-be-converted-to-the-type-integer-which-is-expected-by-the-property-retrydelay/78963>\
**Category:** Ignition\
**Created:** [September 11, 2023, 2:22pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile-error-string-cannot-be-converted-to-the-type-integer-which-is-expected-by-the-property-retrydelay/78963 "2023-09-11T14:22:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![edward.fowler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/edward.fowler/32/24179_2.png) [@edward.fowler](https://forum.inductiveautomation.com/u/edward.fowler)\
**Post date:** [September 11, 2023, 2:22pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile-error-string-cannot-be-converted-to-the-type-integer-which-is-expected-by-the-property-retrydelay/78963/1 "2023-09-11T14:22:37Z")

</div>

v8.1.31

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

Suggestions?

Thank you.

```auto
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

---

<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:** [September 11, 2023, 3:07pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile-error-string-cannot-be-converted-to-the-type-integer-which-is-expected-by-the-property-retrydelay/78963/2 "2023-09-11T15:07:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![edward.fowler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/edward.fowler/32/24179_2.png) [@edward.fowler](https://forum.inductiveautomation.com/u/edward.fowler)\
**Post date:** [September 11, 2023, 3:54pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile-error-string-cannot-be-converted-to-the-type-integer-which-is-expected-by-the-property-retrydelay/78963/3 "2023-09-11T15:54:14Z")

</div>

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 🙂

```auto
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](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/1/811910895c2754d310e479ebb513265d9fc094d9.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:** [September 11, 2023, 4:02pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile-error-string-cannot-be-converted-to-the-type-integer-which-is-expected-by-the-property-retrydelay/78963/4 "2023-09-11T16:02:19Z")

</div>

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

```auto
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 😉) 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.

---

<div class="post-metadata">

**Author:** ![edward.fowler](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/edward.fowler/32/24179_2.png) [@edward.fowler](https://forum.inductiveautomation.com/u/edward.fowler)\
**Post date:** [September 11, 2023, 4:18pm UTC](https://forum.inductiveautomation.com/t/email-notification-profile-error-string-cannot-be-converted-to-the-type-integer-which-is-expected-by-the-property-retrydelay/78963/5 "2023-09-11T16:18:51Z")

</div>

Understood. Thank you @paul-griffith .
