# Repair

Repair is a UI Action on the Integration. Clicking it will cause a bulk replay of all its broken Transactions (those in an Error or Timed Out state).

You can repair an Integration either from Unifi Integration Designer, or native ServiceNow:&#x20;

{% tabs %}
{% tab title="Unifi Integration Designer" %}
Click the **Repair** UI action on the Integration record in the Unifi Integration Designer portal.![](blob:https://sharelogic.atlassian.net/d8ddbba2-3453-4ab2-9cf3-5f780c44deb7#media-blob-url=true\&id=a9c0b836-8425-4e4d-84c3-3f45f1cc9a87\&collection=contentId-45973511\&contextId=45973511\&mimeType=image%2Fpng\&name=Repair%202.png\&size=4786\&width=622\&height=30)

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MfI_gA0pxnLashD6_e-%2F-MfIdxJYgo7mQrVSSt11%2FEHTFG%20-%20Repair%201.png?alt=media\&token=3bd0e62f-43b8-42f7-abf0-a16eb86707b1)
{% endtab %}

{% tab title="Native ServiceNow" %}
Click the the **Repair** UI Action in the header of the Integration record in native ServiceNow

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MfI_gA0pxnLashD6_e-%2F-MfIkQjThkPNh7PfkiqC%2FEHTFG%20-%20Repair%203.png?alt=media\&token=0e002c4b-a273-4aa2-a56f-cc2222ce6972)
{% endtab %}
{% endtabs %}

{% hint style="info" %}
Unifi Admins can repair Integrations.
{% endhint %}

## Use Case

In the case of a major outage (where perhaps the other system is down, or the authentication user credentials have been updated), you might have a number of failed Transactions. Rather than stepping into each Transaction and replaying them individually, you can simply replay all the broken Transactions on the Integration. This could represent a significant time-saving.![](blob:https://sharelogic.atlassian.net/868d653f-f25e-483e-8d56-8464d48a88ed#media-blob-url=true\&id=4b297628-d6bf-41e9-85a1-2b37cd35743f\&collection=contentId-45973511\&contextId=45973511\&mimeType=image%2Fpng\&name=Repair%203.png\&size=7552\&width=247\&height=87)

As a further aid, there is also a 'View broken transactions' Related Link on the Integration record which will take you to a list of all Transactions in an Error or Timed Out state.

![](https://2404534899-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQBk35gIi557UHt7QlJ%2F-MfI_gA0pxnLashD6_e-%2F-MfIf3Fgby1DE8BsSpLu%2FEHTFG%20-%20Repair%202.png?alt=media\&token=461a6f31-7a54-4c51-b50f-ab022945c3a6)

{% hint style="success" %}
**Hints & Tips:** It is possible for Unifi to be proactive and raise Incidents about Integrations ([see Event Actions](https://docs.sharelogic.com/unifi/3.0/configuration/event-actions)). In such a case, the repair functionality could be tied to the resolution of the Incident, whereby Unifi automatically runs 'Repair' on the Integration the Incident was raised against.
{% endhint %}

## Replay, Repair and Ignored

When a Transaction is replayed (whether individually, or in bulk), the original record is set to 'Ignored' and a new Transaction (with a decimal suffix) is generated (taking the same Stage data & reprocessing it) and sent.
