Scheduling and orchestration processes do not work when using MSMQ

You might have problems when you try to schedule or orchestrate scripts if you use Microsoft Message Queueing (MSMQ) as your system queue provider.

Symptoms

You try to schedule a script or start an orchestration process but it doesn't work. There are several known causes to the problem that are related to MSMQ and environment configurations.

Causes

The problem has the following known causes:

  • MSMQ has not been installed correctly or is not available.
  • MSMQ ports are not open on the server.
  • MSMQ is rejecting unauthenticated RPC calls.
  • The client is unable to communicate with the server's scheduler.
  • The IBM RPA server and client are not installed on the same subnet.

Resolving the problem

Follow the steps to resolve scheduling and orchestrating problems if you use Microsoft Message Queueing (MSMQ) as your system queue provider.

Install MSMQ

Make sure that you have Microsoft Message Queueing (MSMQ)🡥 installed in your server.

Check the Network ports used by Message Queueing

For more information, see Network ports used by Message Queueing🡥.

Check if the IBM RPA server and the client are on the same subnet

Due to an MSMQ limitation, make sure that you have the IBM RPA server and the client installed on the same subnet.

Reinstall MSMQ

If you are still having problems with scheduling and Message Queueing is installed but not available, try reinstalling Message Queuing in the server:

  1. From the Windows Start menu, open Server Manager.
  2. On the header bar, click Manage and select Remove Roles and Features.
  3. A new window opens on the Before You Begin page, click Next to continue.
  4. Select the Select a server from the pool option, select your server name, and click Next to continue.
  5. Under Server Roles, click Next to continue.
  6. Under Features, disable the Message Queueing option and click Next.
  7. Enable the option Restart the destination server automatically if required and click Remove.

The computer automatically restarts after removing the feature.

To reinstall the Message Queuing feature, follow these steps:

  1. From the Windows Start menu, open Server Manager.
  2. On the header bar, click Manage and select Add Roles and Features.
  3. A new window opens on the Before You Begin page, click Next to continue.
  4. Under Installation Type, select Role-based or feature-based installation and click Next.
  5. Under Server Selection, select the Select a server from the server pool option, select the server you want to use, and click Next.
  6. Under Server Roles, click Next.
  7. Under Features, enable Message Queueing and click Next.
  8. Enable the option Restart the destination server automatically if required and click Install to install the feature.

Optional: Enable unauthenticated RPC calls

MSMQ might reject connections from unauthenticated sources, which can lead to issues with scheduling. Enabling unauthenticated RPC calls can cause security issues, follow the procedure only if the problem persists:

  1. On the Windows Start menu, open the Computer Management application.
  2. Expand the Services and Applications to reveal the Message Queuing service.
  3. Right click Message Queuing and select Properties.
  4. Go to the Server Security tab, and deselect the Disable un-authenticated RPC calls option.
  5. Click Apply and then OK.