# Run Failures

### What Are Run Failures?

In the instance that an error occurs during a sync, there are four possible status that will be reflected for a run:

* Failed (Integration Issue)
* Failed (Refresh)
* Failed (Platform Issue)
* Failed (Timeout)

#### Integration Issues

If something fails inside your integration code, in order to properly reflect a failed status, it is the responsibility of the integration development team to exit the process with a failed status code. Below are some examples codes that can be used for different languages:

<table><thead><tr><th>Language</th><th width="223.78125">Set &#x26; Continue</th><th>Immediate Exit</th></tr></thead><tbody><tr><td>Node.js</td><td><code>process.exitCode = 1</code></td><td><code>process.exit(1)</code></td></tr><tr><td>Java</td><td>❌</td><td><code>System.exit(1)</code></td></tr><tr><td>C#</td><td><code>Environment.ExitCode = 1</code></td><td><code>Environment.Exit(1)</code></td></tr><tr><td>PHP</td><td>❌</td><td><code>exit(1)</code> or <code>die(1)</code></td></tr></tbody></table>

**Refresh Failures**

There may be instances where a run fails due to a error during the refresh process. Disconnecting and reconnecting the tenant will typically help resolve these types of failures. However, if you continue to experience refresh failures even after performing these initial troubleshooting steps, please reach out to your Technical Account Manager or submit a support request to <support@pandium.com> to further assist with investigatory efforts.

**Platform Issue**

There may be times when a failure is the result of an internal issue impacting Pandium's infrastructure. Depending on the severity, the Pandium team will report any known errors to our status page - <https://status.pandium.com/>. However, it's possible the platform failure is isolated to a specific tenant(s). If no status related to platform failures is visible on the Pandium status page, please reach out to your Technical Account Manager or submit a support request to <support@pandium.com>.

**Failed (Timeout)**

Timeout errors will occur when the tenant run job exceeds the ten minute limit.<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pandium.com/getting-started/anatomy-of-an-integration/run-failures.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
