# Integration 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:

{% 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://content.gitbook.com/content/2EJsRh73QF1TvP9eLF8k/blobs/q5f8k1w1bv5hz1Pv3U78/ehtfg-repair-1.png)
{% endtab %}

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

![](https://content.gitbook.com/content/2EJsRh73QF1TvP9eLF8k/blobs/86sqDeUcMELyNBknqS36/ehtfg-repair-3.png)
{% 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://content.gitbook.com/content/2EJsRh73QF1TvP9eLF8k/blobs/EPOKHipHPIOFMYJCoTfX/ehtfg-repair-2.png)

{% 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/4.2/configure/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.
