# Retry Configurations

The connector can retry an operation if it fails. The `retryMessages` and `retryCodes` attributes are a list of strings and codes respectively, through which the connector searches when it receives a message from the source. To take advantage of this feature, configure a list of messages and codes to the attributes map in a source. If one of the strings or codes in the entry is in the error list, the connector attempts to retry the operation. If the configured error string or code is not a part of the error message, then the connector will not reattempt the operation. Add the following entry in the source XML using the SailPoint REST APIs.

For example:

```http
PATCH https://{orgName}.api.cloud.sailpoint.com/v3/sources/{SourceID}

[
    {
        "op": "replace",
        "path": "/connectorAttributes/retryMessages",
        "value": [
            "Connection reset"
        ]
    }
]
```

```http
PATCH https://{orgName}.api.cloud.sailpoint.com/v3/sources/{SourceID}

[
    {
        "op": "replace",
        "path": "/connectorAttributes/retryCodes",
        "value": [
            "503 Service Unavailable"
        ]
    }
]
```

> [!NOTE]
>
> For more information on SailPoint's REST APIs, refer to [Best Practices: REST API Authentication](<https://developer.sailpoint.com/docs/api/authentication/>) and [REST API - Update Source (Partial)](<https://developer.sailpoint.com/docs/api/update-source-v-1/>) in the SailPoint Developer Community.

> [!NOTE]
>
> Error messages containing very specific information about date/time, sequence ID and so on must be avoided. Error codes or error message substrings would be good candidates for inclusion.
