# Inbound/Outbound Queue Restart Automation

The customer’s end-to-end business often requires the sending and receiving of transactions across SAP systems via synchronous/asynchronous messages stored in queues, otherwise known as qRFC/tRFC (queue/transactional Remote Function calls). Failures on the inbound or outbound queues can cause delays and disruptions in critical business processes.

IT-Conductor allows users to automate the restarting of Inbound/Outbound (SYSFAIL, RETRY, CPIERR, and RUNNING) queues. It can be applied to one or more systems and can be run manually or on a schedule. This feature is highly adaptable to any customer environment and can become essential to IT maintenance operations.

### Prerequisites

* The system should be registered in IT-Conductor for monitoring.

<figure><img src="/files/NNR4NhY2bGpV643xDLWv" alt=""><figcaption><p>Figure 1: SAP System in IT-Conductor Service Grid</p></figcaption></figure>

* A [Robot User](/user-guide/account-administration/create-robot-users.md) should be created and associated with the application/DB/OS users with assigned roles/privileges to execute the local action on the system to be stopped/started.

  <figure><img src="/files/84h9qAaF54fUvCY6js4U" alt=""><figcaption><p>Figure 2: Start/Stop Process Definitions</p></figcaption></figure>
* The ownership of the process definition should be assigned to the [Robot User](/user-guide/account-administration/create-robot-users.md).
* The [Robot User](/user-guide/account-administration/create-robot-users.md) should be able to view the following recovery definitions when navigating to **Management → Automation → Recover Definitions**.
  * Reset Inbound tRfc Queue
  * Restart Inbound tRfc Queue
  * Restart Outbound tRfc Queue

<figure><img src="/files/Be1HZc4PbNmrLiBMWMS5" alt=""><figcaption><p>Figure 3: Navigating to Recovery Definitions</p></figcaption></figure>

<figure><img src="/files/AI9qEcT4QnsZ0grPxpwN" alt=""><figcaption><p>Figure 4: List of Recovery Definitions</p></figcaption></figure>

{% hint style="info" %}
**Note:** If the recovery definitions are not available for use, contact [IT-Conductor Support](https://docs.itconductor.com/reference/support).
{% endhint %}

### Automate Inbound/Outbound Queue Restart <a href="#how-to-automate-inbound-outbound-queue-restart" id="how-to-automate-inbound-outbound-queue-restart"></a>

1. Select the Inbound Queue to implement the restart automation.

<figure><img src="/files/gQVMfrOU4T3yr3HzMdtl" alt=""><figcaption><p>Figure 5: Inbound Queues in IT-Conductor Service Grid</p></figcaption></figure>

2. Click **Threshold Overrides** <img src="/files/RT3mGxIBZHHnoQqWOsrq" alt="" data-size="line">.

<figure><img src="/files/zFq710at0RABFrUN8yoF" alt=""><figcaption><p>Figure 6: First Entry Age</p></figcaption></figure>

3. Select the targeted override.

<figure><img src="/files/CyQoh4EQwwQhh7Y2cuD7" alt=""><figcaption><p>FIgure 7: First Entry Age Overrides</p></figcaption></figure>

4. Configure the threshold and define the desired schedule for running the restart automation.

<figure><img src="/files/4uQke1dKNo6mvOyPaDRZ" alt=""><figcaption><p>Figure 8: First Entry Age Configuration Settings</p></figcaption></figure>

5\. Select the desired recovery action in the **Recovery** dropdown menu.

<figure><img src="/files/dUtZHUi7OkL3ernaMhZS" alt=""><figcaption><p>Figure 9:Selecting Recovery Action</p></figcaption></figure>

{% hint style="info" %}
**Note:** If the recovery definitions are not available for use, contact [IT-Conductor Support](https://docs.itconductor.com/reference/support).
{% endhint %}

6. Configure to send a notification for this event. (Optional)

<figure><img src="/files/KrVEfGSJN38K1boX7Jfm" alt=""><figcaption><p>Figure 10: Configuring Recovery Notification</p></figcaption></figure>

7. Click **Save** to complete the restart automation.

<figure><img src="/files/L7rBFhQ1vI0iCmzRSOxw" alt=""><figcaption><p>Figure 11: Saving the Recovery Configurations</p></figcaption></figure>

### View Recovery Activities <a href="#how-to-view-recovery-activities" id="how-to-view-recovery-activities"></a>

1. Click the **Recovery Activities Launched** /icon.

<figure><img src="/files/AaHewWLTBtXXET6bIrC9" alt=""><figcaption><p>Figure 12: Navigating to Recovery Activities Launched</p></figcaption></figure>

<figure><img src="/files/NbdGRzeaDflZwaYlHNP9" alt=""><figcaption><p>Figure 13: Recovery Activities Launched</p></figcaption></figure>

### Related Information <a href="#related-articles" id="related-articles"></a>

Access the technical description for restarting Inbound/Outbound Queues from SAP Notes:

* [1804549 - Restarting Inbound SYSFAIL, RETRY, CPIERR and RUNNING Queues](https://me.sap.com/notes/0001804549)
* [1804597 - Restarting Outbound SYSFAIL, RETRY, CPIERR and RUNNING Queues](https://me.sap.com/notes/1804597)
* [1483845 - Using the report RSARFCEX](https://me.sap.com/notes/1483845)


---

# 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.itconductor.com/user-guide/automation/inbound-outbound-queue-restart.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.
