BlogInformatica

Informatica Workflow Stuck in Preparing to Run or Unknown Status

Scott Sternloff

By Scott Sternloff, Senior Enterprise Architect

LinkedIn · Updated · 4 min read

Informatica Workflow Stuck in Preparing to Run or Unknown Status
On this page

Short answer

In PowerCenter, Preparing to Run means the workflow is waiting for an execution lock, Waiting means it is waiting for resources, and Unknown Status means the service cannot determine the status, does not answer a ping from the Workflow Monitor, or the Monitor cannot connect within the resilience timeout. They look alike in the Workflow Monitor but need different first checks, and none of them is a failure by itself.

In PowerCenter, Preparing to Run means the workflow is waiting for an execution lock, Waiting means it is waiting for resources, and Unknown Status means the service cannot determine the status, does not answer a ping from the Workflow Monitor, or the Monitor cannot connect within the resilience timeout. They look alike in the Workflow Monitor but need different first checks, and none of them is a failure by itself.

The definitions below are from the pmcmd getworkflowdetails page of the PowerCenter 10.4.1 documentation. The documentation defines each status but does not list every cause, so this post sticks to what it says and how to check it. Our Informatica support page covers who can sit with you through the checks.

What do these three statuses mean?

Each has one documented meaning, and they are easy to mix up. Read the status first, because it decides whether you look at locks, capacity or connectivity.

StatusWhat the documentation saysFirst check
Preparing to RunThe Integration Service is waiting for an execution lock for the workflow.Is another run of the same workflow active? Use pmcmd getservicedetails.
WaitingThe Integration Service is waiting for available resources to run the workflow or task. Example: a limit of 10 running Session and Command tasks per service process on the node.How many sessions are running now? Use pmcmd getrunningsessionsdetails.
Unknown StatusThe service cannot determine the status, does not respond to a ping from the Workflow Monitor, or the Monitor cannot connect within the resilience timeout.Does pmcmd pingservice answer?

Is the workflow stuck, or is the monitor out of date?

Unknown Status can describe the client's view, not the workflow. Run pmcmd pingservice from a host that can reach the Integration Service. It verifies that the service is running. If it answers, the no-response case is ruled out, so look at the client connection and its resilience timeout.

pmcmd waits for the timeout you pass with -timeout, then for the value of INFA_CLIENT_RESILIENCE_TIMEOUT, then for a default of 180 seconds. A connection attempt can therefore run for three minutes before it fails, so set the timeout on purpose in scripts.

How do you tell a lock from a capacity limit?

Ask the service what it is running. The getservicedetails command returns the status of each active workflow and task and the counts of scheduled, active and waiting workflows and sessions. A queue of Waiting items next to a full set of running sessions points at a limit, not a lock.

  1. Run pmcmd getservicedetails -all and note the active, scheduled and waiting counts.
  2. Run pmcmd getrunningsessionsdetails to list running sessions, their start times and their first error codes.
  3. Run pmcmd getworkflowdetails on the stuck workflow for its status, start time and log file.
  4. Compare the number of running sessions with the per-node limit your administrator set.
  5. If the same workflow is already active under another run, find who or what started it before you do anything else.
pmcmd getservicedetails -sv IS_PROD -d Domain_Prod -uv INFA_USER -pv INFA_PASS -all

What should you collect before you ask for help?

Capture the evidence while the workflow is still stuck, because stopping or restarting changes the state you are trying to read. Keep it in one place with timestamps:

  • The output of getservicedetails, getrunningsessionsdetails and getworkflowdetails, each with the time it ran.
  • The workflow log file name that getworkflowdetails returns, and the log itself.
  • The PowerCenter version, the Integration Service name and the node it runs on.
  • What else was scheduled in the same window, and whether the same workflow had an earlier run still active.
  • The limit on running Session and Command tasks configured for that node.

What should you not do first?

Do not stop or abort a workflow just to clear the screen. Stopped and Aborted workflows are recoverable only if recovery was enabled, and an abort kills the DTM process. Find the cause, note what the targets hold, and then decide.

If a stuck status turns into a failure, the next question is whether to recover or rerun, which we cover in recover, restart or rerun a failed workflow. For the pattern in practice, see Informatica workflow failure triage.

Sources

Frequently Asked Questions

What does Preparing to Run mean in Informatica?

The Integration Service is waiting for an execution lock for the workflow. The documentation does not list the causes, so check whether another run of the same workflow is active and what the Integration Service reports as running.

What is the difference between Waiting and Preparing to Run?

Waiting means the service is waiting for resources, for example because it is already running the maximum number of Session and Command tasks set for the node. Preparing to Run means it is waiting for an execution lock.

Why does the Workflow Monitor show Unknown Status?

The Integration Service could not determine the status, did not answer a ping from the Monitor, or the Monitor could not connect within the resilience timeout. Run pmcmd pingservice to see whether the service itself responds.

Scott Sternloff

Author

Scott SternloffSenior Enterprise Architect

Senior Enterprise Architect at AceMQ. Writes the technical coverage here: RabbitMQ, Kafka and Redis architecture, clustering and migrations.

Talk to an engineer

Need a hand with Informatica?

Senior engineers who run it in production. Get a quote or a free consultation, no sales pitch.

Free Consultation

Get Expert Eyes on Your Informatica Environment

Whether you're troubleshooting a production incident, planning a migration, or want a second opinion on your architecture — our team is ready. No pitch, just answers.

Email Us