---
title: "Error Notification"
canonical: "https://docs.perspectium.com/space/helium/2115711/Error+Notification"
format: markdown
---
<span style="color: #000000">You can specify users in your ServiceNow instance who will receive email notifications about errors and other events within the DataSync application</span><span style="color: #000000">. To configure notification</span><span style="color: #000000">s within your Perspectium solution, navigate to </span>**<span style="color: #000000">Perspectium</span>**<span style="color: #000000"> > </span>**<span style="color: #000000">Control and Configuration </span>**<span style="color: #000000">> </span>**<span style="color: #000000">Troubleshooting</span>**<span style="color: #000000"> > </span>**<span style="color: #000000">Error Notification</span>**<span style="color: #000000">.</span>

<span style="color: #000000">Perspectium notifications are created as ServiceNow </span>[<span style="color: #000000">email notifications</span>](https://docs.servicenow.com/bundle/paris-servicenow-platform/page/administer/notification/task/t_CreateANotification.html)<span style="color: #000000"> in order to send emails natively through the instance and some notifications use </span>[<span style="color: #000000">notification email scripts</span>](https://developer.servicenow.com/dev.do#!/learn/learning-plans/orlando/servicenow_administrator/app_store_learnv2_automatingapps_orlando_notification_email_scripts)<span style="color: #000000"> for the email's subject and body content. See </span>[<span style="color: #000000">email notifications</span>](https://docs.servicenow.com/bundle/paris-servicenow-platform/page/administer/notification/concept/c_EmailNotifications.html)<span style="color: #000000"> and </span>[<span style="color: #000000">notification email scripts</span>](https://developer.servicenow.com/dev.do#!/learn/learning-plans/orlando/servicenow_administrator/app_store_learnv2_automatingapps_orlando_notification_email_scripts)<span style="color: #000000"> for more information.</span>

:info:<span style="color: #000000"> </span>**<u><span style="color: #000000">NOTE</span></u>****<span style="color: #000000">: </span>**<span style="color: #000000">Since these notifications use built-in ServiceNow functionality, you are able to view and change the notifications and their content from the default behavior. However this is only recommended for advanced users as changes may cause the notifications to not function properly. </span>

<span style="color: #000000">The following notifications are included with the DataSync app:</span>

| **Name** | **Description** |
| --- | --- |
| Perspectium Error | Notification when there is an error in the [<span style="color: #000000">Perspectium Logs</span>](https://docs-perspectium.atlassian.net/wiki/spaces/helium/pages/2157987)<span style="color: #000000">. When the DataSync application encounters an issue and logs an error, you can use this notification to be notified . An example of an email created is as follows:</span><br>**Subject: **Perspectium Error: perspectium - psp.out.replicator.queue_name<br>**Body:**<br>**The following error has occurred:**<br>Instance: perspectium<br>Name: psp.out.replicator.queue_name<br>Value: 2020-10-28 20:08:26: Error getting metrics for queue psp.out.replicator.testqueue on [https://<server>.perspectium.net/](#) |
| Perspectium Agent Error / Perspectium Meshlet Error | Notification <span style="color: #000000">when the </span>[<span style="color: #000000">DataSync Agent</span>](https://docs-perspectium.atlassian.net/wiki/spaces/helium/pages/2111946)<span style="color: #000000"> or </span>[<span style="color: #000000">DataSync Meshlet</span>](https://docs-perspectium.atlassian.net/wiki/spaces/helium/pages/2121840)<span style="color: #000000"> encounters errors processing records. Both applications will send back batches of errors and this notification will create an email that contains a list of records that resulted in errors, including the table the record belongs to, the record sys_id and the Agent/Meshlet's error message. </span><br><span style="color: #000000">You can control the error messages sent back by the DataSync Agent to your instance using the </span>**<span style="color: #000000"><error_batch_size></span>**<span style="color: #000000"> and </span>**<span style="color: #000000"><receipt_send_interval></span>**<span style="color: #000000"> </span>[<span style="color: #000000">configurations</span>](https://docs-perspectium.atlassian.net/wiki/spaces/helium/pages/2111774)<span style="color: #000000">, as error messages are sent back when the batch size or the send interval has been reached, whichever comes first. For example, if the <error_batch_size> is 10 and the <receipt_send_interval> is 5, then an error message will be sent back when there are 10 errors or 5 minutes have passed, whichever occurs first. Meshlets currently will send errors based on the batch they process each time i.e. if a batch of records has 3 errors, those 3 errors will be sent back in one error message.</span><br><span style="color: #000000">An example of an email created is as follows:</span><br>**Subject: **Perspectium Agent (psp_test_agent) Errors<br>**Body:**<br>**Errors have occurred in the Agent when attempting to process the following records:**<br>**<span style="color: #000000">Table</span>**<span style="color: #000000">: incident, </span>**<span style="color: #000000">Record</span>**<span style="color: #000000">: 72c645032f431010744b90bcf699b67c</span><br>**<span style="color: #000000">Error: </span>**<span style="color: #000000">SubscribeException: Invalid sys_id</span><br>**<span style="color: #000000">Table</span>**<span style="color: #000000">: incident, </span>**<span style="color: #000000">Record</span>**<span style="color: #000000">: 72c645032f431010744b90bcf699b67d</span><br>**<span style="color: #000000">Error: </span>**<span style="color: #000000">SubscribeException: Invalid sys_id</span><br><span style="color: #000000">For more information on the email content, see the </span>**psp_error_script**<span style="color: #000000"> </span>[notification email script](https://developer.servicenow.com/dev.do#!/learn/learning-plans/orlando/servicenow_administrator/app_store_learnv2_automatingapps_orlando_notification_email_scripts)<span style="color: #000000">.</span> |
| <span style="color: #000000">Perspectium Connection Error</span> | <span style="color: #000000">Notification when the DataSync app has connection issues with the Perspectium Integration Mesh. That is, when the application attempts to connect to the Mesh to post messages being shared and if applicable, when it tries to fetch messages being subscribed.. See below for configuration options (batching and interval) related to this notification. </span><br><span style="color: #000000">An example of an email created for this notification is as follows:</span><br>**Subject: **Perspectium Connection Error<br>**Body:**<br>**Errors connecting to the Perspectium Integration Mesh:**<br>PerspectiumReplicator.fetchFromQueue:Error fetching from queue psp.out.servicenow.instance_name on [https://<instance_name>.perspectium.net/](#): Connection refused.<br>See Perspectium Logs on instance dev00000 for more information. |
| Perspectium Table Compare Discrepancies | Notification <span style="color: #000000">when </span>[<span style="color: #000000">Table Compare</span>](https://docs-perspectium.atlassian.net/wiki/spaces/helium/pages/2106801)<span style="color: #000000"> executes and there are discrepancies between the instance and the database the Agent is saving records into. Each time a Table Compare is executed and there are discrepancies found, this notification will create an email that details the discrepancies. An example of an email created is as follows:</span><br>**Subject: **Perspectium Table Compare Discrepancies<br>**Body:**<br>**Discrepancies found in the DataSync Agent database:**<br>**<span style="color: #000000">Table Compare e84d1fd6db80641024df4870399619aa found discrepancies. There were 1 missing records and 0 additional records. Missing records will be reshared and additional records will be removed.</span>**<br><span style="color: #000000">For more information on the email content, see the </span>**<span style="color: #000000">psp_table_compare_script</span>**<span style="color: #000000"> </span>[<span style="color: #000000">notification email script</span>](https://developer.servicenow.com/dev.do#!/learn/learning-plans/orlando/servicenow_administrator/app_store_learnv2_automatingapps_orlando_notification_email_scripts)<span style="color: #000000">.</span> |
| Perspectium Situation | Notification when a [situation](https://docs-perspectium.atlassian.net/wiki/pages/createpage.action?spaceKey=helium&title=Situations&linkCreation=true&fromPageId=2115711) has occurred multiple times. The default value of **6 **is specified in the **Conditions** field of the **When to send** tab of the [notification](https://docs.servicenow.com/bundle/paris-servicenow-platform/page/administer/notification/task/t_CreateANotification.html):<br>![image](media://c11c81b6-6273-4825-9df6-faddc5c318f5)<br>The following templates are included:<br>> Macro (nested-table)<br><span style="color: #000000">These templates are situations that will occur multiple time and cause a notification. For example, once there are 6 Perspectium Old Message Alert situations that occur, the notification will then be sent if you subscribe to this notification. </span><span style="color: #000000">An example of an email created for this notification is as follows:</span><br>**Subject: **Perspectium Situation Triggered: Perspectium Old Message Alert<br>**Body:**<br>Situation: messages that have been sitting in a outbound for more than the specified time |


## <span style="color: #000000">**Subscribe to a notification**</span>

---

<span style="color: #000000">To subscribe to a Perspectium notificaton and receive emails when an event occurs, follow these steps:</span>

> Macro (ui-steps)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)
> 
> > Macro (legacy-content)


## **<span style="color: #000000">Perspectium Connection Error configuration options</span>**

---

<span style="color: #000000">To avoid temporary short term connection issues (i.e. there was a single connection issue and the app was able to connect on the next attempt to share data to the Mesh), you can configure how frequently the Perspectium Connection Error notification should check for issues and how many times the issues occur before sending a notification.</span>

<span style="color: #000000">To configure this notification, follow these steps:</span>

> Macro (ui-steps)
> 
> > Macro (legacy-content)

> Macro (__confluenceADFMigrationUnsupportedContentInternalExtension__)