BlogInformatica

Informatica Resume From Last Checkpoint: What It Needs

Scott Sternloff

By Scott Sternloff, Senior Enterprise Architect

LinkedIn · Updated · 4 min read

Informatica Resume From Last Checkpoint: What It Needs
On this page

Short answer

Resume from last checkpoint is a recovery strategy for Session tasks only. It works because PowerCenter writes checkpoints to $PMStorageDir and recovery tables to the target database, and it is valid only when the session reproduces the same data in the same order on a rerun. Mapping variables, grid runs and bulk-mode relational targets rule it out.

Resume from last checkpoint is a recovery strategy for Session tasks only. It works because PowerCenter writes checkpoints to $PMStorageDir and recovery tables to the target database, and it is valid only when the session reproduces the same data in the same order on a rerun. Mapping variables, grid runs and bulk-mode relational targets rule it out.

This is the checklist to run before you pick it. The facts are from the PowerCenter 10.5 Advanced Workflow Guide. If you want a second pair of eyes on a batch window, 24/7 Informatica support is one way to get it.

What does resume from last checkpoint actually save?

Two things in two places. The Integration Service creates checkpoints in $PMStorageDir, whose default is $PMRootDir/Storage, and it writes recovery tables in the target database. Lose either one and the resume fails.

WhereWhatDocumented behavior
$PMStorageDirCheckpoints and session state of operationNeeded on recovery; the run fails if the file is missing or the directory definition changed.
PM_RECOVERYTarget load information for the session runCleared after each successful session and initialized at the start of the next.
PM_TGT_RUN_IDIdentifies each target on the databaseStays between runs. If you create it by hand, LAST_TGT_RUN_ID must be a non-zero value.
PM_REC_STATEWhether to write messages to the target during recoveryUsed for real-time sessions.

To let the Integration Service create the tables, grant table creation to the database user in the target connection. If you edit or drop them before recovery, the session cannot be recovered. Turning recovery off does not remove them, so clean them up yourself.

When can a session not use it?

The documentation gives a short list of hard limits, and mapping variables head it. If a session hits any row below, choose restart task and plan the clean-up instead.

ConditionResult
The session uses mapping variablesYou cannot configure resume.
A transformation uses a partition type other than pass-throughResume is not available.
The session runs on a gridYou cannot configure resume.
The session writes to a relational target in bulk modeYou cannot configure resume.
Full pushdown optimizationNo incremental recovery, because the database runs the session.

Pre-session and pre-SQL commands run only once when you resume. A pre- or post-command or SQL command that fails runs again during recovery, so write them to be safe to repeat.

Does the session produce the same rows every time?

It must, or the session is not valid. The recovery run has to produce the same data in the same order as the original, and the Workflow Manager checks that the transformations are configured to be repeatable and deterministic when you validate the session.

Data is repeatable when every target receives repeatable data from its source and from each transformation. For relational sources, incremental reads work when the output is deterministic and repeatable. If it is not, the Integration Service stages the SQL results to a storage file instead. The documentation has a repeatability page for each source and transformation type.

Will it resume mid-stream, or start the load again?

It depends on the session design. Incremental recovery starts at the point of interruption and does not read rows already processed. Full recovery re-reads every source row and reruns the transformation logic, then writes to the target from the last commit point.

ComponentIncremental recoveryFull recovery
Commit typeSource-based commit, no transformation that generates commitsTarget-based or user-defined commit
Transformation scopeTransaction or RowAny transformation with the All scope
FTP sourceServer supports seekServer does not support seek

If any one component needs full recovery, the whole session gets full recovery.

What breaks a resume after it is configured?

Changes between the failed run and the recovery run. Changing partitions makes the recovery session fail. A missing storage file or recovery table does too. The documentation also warns that dropping or creating indexes or editing data can return missing or repeated rows, and changing code pages can return incorrect data.

Freeze the session, the objects it touches and the storage directory until the recovery finishes, and keep the failed workflow recover, restart or rerun decision in the ticket. The earlier guide on logs and recovery in production covers the defaults.

Sources

Frequently Asked Questions

Is resume from last checkpoint the default recovery strategy?

No. For Session and Command tasks the default is fail task and continue workflow. Resume from the last checkpoint has to be configured on the Properties page of the Session task, and it applies to Session tasks only.

Where does PowerCenter store checkpoints?

In $PMStorageDir, which defaults to $PMRootDir/Storage. The target database also holds the recovery tables PM_RECOVERY, PM_TGT_RUN_ID and PM_REC_STATE. PowerCenter uses these files for recovery when you have the high availability option or enable a workflow for recovery.

Can I resume a session that uses mapping variables?

No. The documentation says you cannot configure a session with a resume strategy if it uses mapping variables. Use restart task and remove or skip the partially loaded rows instead.

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