Duczer East
Healthcare

In-perimeter AI on governed clinical and operational data.

Financial Services

Private AI and data platforms built to clear model-risk and audit review.

Financial services

Private AI, KYC/AML, API gateways and data governance for banks.

Insurance

Change data capture, governed agents and integration for insurers.

Healthcare

PHI document intelligence, FHIR APIs and in-perimeter AI for health systems and plans.

GuideIntegration & Security6 min read

SAP CPI troubleshooting runbook: failed messages, logs and fix order

Failed messages, logs, monitoring and the order to fix in

Authored byCo-Founder and Managing Partner, Duczer East
Part of the Insights topic: API Management & Integration
On this page
  1. Failed messages
  2. Logs
  3. Monitoring
  4. Fix order
  5. A worked example
  6. Escalating to SAP
  7. Prevention checklist
  8. Questions we hear
  9. A first engagement

When a SAP Cloud Integration message fails, find the message in the monitor, read its processing log for the step that failed, sort the cause (connection, security, data or capacity), fix the cheapest cause first and retry. The order matters because most failures are credentials, certificates or endpoints, not code. This runbook covers failed messages, logs, monitoring and the fix order. It supports our SAP Integration Suite consulting page.

Failed messages

Start in the message monitor for your tenant. Filter by status and time, then open a failed message. Note the message ID, the flow name, the time and the error text, and copy them into your ticket.

StatusMeaningFirst action
FailedProcessing ended in errorRead the log; classify the cause
RetryThe system will try againCheck if the cause is temporary, such as a receiver outage
EscalatedAn error was handled by an exception pathCheck the exception flow and what it did
ProcessingStill runningCheck for a hung receiver or a long mapping
CompletedFinished without errorIf the business says otherwise, check the data, not the platform

Classify the error text before touching anything:

Error text patternLikely causeCheck
HTTP 401 or 403Wrong or expired credentials, role or clientCredential alias, client and role; see the security checklist
Certificate or SSL handshake errorMissing, expired or untrusted certificateKeystore monitor and expiry dates on both sides
Connection refused or timeoutReceiver down, blocked route or wrong addressReceiver status, firewall, Cloud Connector
Mapping or parse errorUnexpected data or a changed schemaThe payload at the failing step
Duplicate or out-of-order messagesRetry or sender behaviourSender settings and idempotency
Resource or queue errorsCapacity or a stuck queueQueue monitor and tenant limits

Logs

The message processing log shows each step with its status. Read it from the failed step backwards. Three habits help:

  • Read the first error, not the last; later errors are often fallout.
  • Raise the log level only for the flow you are debugging. Debug and trace levels can capture payloads, so they may expose personal data. SAP limits how long trace stays on; check your tenant.
  • Reset the log level when done, and record that you did.

Where a flow calls a backend, compare with the backend's own log using the correlation ID. If you do not pass one, add it; it will save hours next time.

Monitoring

A runbook is better when failures reach you before users do. Set up:

  1. Alerts on failed and retry messages for each critical flow, with an owner on call.
  2. A daily check on queues and stored messages that have not cleared.
  3. Certificate and credential expiry alerts. See the security checklist.
  4. A weekly look at slow flows and message volume against the plan. Volume feeds cost; see pricing explained.
  5. Export of monitor data to your central tools if tenant retention is short.

Mind retries. Each retry can count as another message under a partner write-up of SAP's counting rules, so an unattended failure loop costs money as well as time. See Cloud Integration explained.

Fix order

  1. Confirm the scope: one message, one flow, one receiver or all.
  2. Check recent changes: a deployment, a certificate renewal, a receiver change.
  3. Check connectivity to the receiver and any Cloud Connector.
  4. Check credentials and certificates.
  5. Check the data against the mapping, using a captured payload.
  6. Check capacity and queues.
  7. Fix, redeploy through your normal change path, retry the failed messages and confirm with the business.
  8. Write a short note: cause, fix, prevention.

Do not edit production flows by hand during an incident unless your change process allows it; make the fix in development, test and promote, and record it.

A worked example

A typical situation, not a client. Orders stop arriving at a warehouse system at 06:10. The monitor shows failed messages with HTTP 401 at the receiver call. A certificate for the receiver was renewed overnight on their side. The team checks the keystore monitor, imports the new certificate, redeploys the flow and retries the failed messages. Prevention: a calendar reminder 30 days before expiry and a shared contact at the receiver. Time lost was the time it took to check connectivity before credentials, which the fix order above reverses for security errors.

Escalating to SAP

Escalate to SAP support when the cause sits in the platform, not your flow: the tenant is unavailable, the monitor does not load, or a standard adapter fails on valid input. Open the ticket with the tenant region, the time window, message IDs, the error text, what you changed recently and what you have already ruled out. A ticket with these details is answered faster than one that says "flows are failing". Keep the reference number in your log.

Prevention checklist

  • Alerts on failure and retry for every critical flow.
  • Named owners and an on-call rota.
  • Certificate and credential expiry reminders.
  • A sample payload and a test client for each critical flow.
  • Retry limits set so that a failure does not run up message count.
  • A review of the monthly failure list for repeat causes.

Questions we hear

Can we retry all failed messages at once? Only after the cause is fixed, or you will repeat the failure and the message count.

Why do messages show Completed but data is wrong? The flow ran as designed on wrong data. Check mapping and source.

Who should be on call? A named integration engineer with access to the monitor and keystore.

A first engagement

Duczer East offers a monitoring and runbook set-up: alerts, ownership and a runbook tailored to your flows. Scope is agreed in writing first.

Related: SAP Integration Suite consulting · Cloud Integration explained · Integration Suite cost review

Frequently asked questions

Where do I start when a SAP CPI message fails?

In the message monitor: filter by status and time, open the failed message and read the processing log from the failed step.

What are the most common causes of failure?

Credentials and certificates, receiver connectivity and unexpected data, in roughly that order.

Is it safe to raise the log level?

Only temporarily, because debug and trace levels can capture payloads with personal data.

Do retries cost money?

A partner write-up of SAP's counting rules says each retry counts as another message.

Should I fix flows directly in production?

Not unless your change process allows it; fix in development, test and promote.

Authored by

Co-Founder and Managing Partner, Duczer East

David deBoisblanc is co-founder of Duczer East and a digital transformation and innovation leader in data-centric AI, agentic systems, and enterprise integration. He shapes intent-driven AI solutions that modernize how organizations use data, drawing on deep experience with Cloudera and complex enterprise integration landscapes.

Newsletter

The Practitioner's Briefing

Senior-level insights on agentic AI, data engineering and enterprise integration, delivered to your inbox.

One email when there is something worth reading. Unsubscribe any time.

Let's Talk

Want to discuss the ideas raised here?

Tell us what you are working on. A senior practitioner replies, and only your email is required.

Get a quote