An integration developer is troubleshooting an integration flow that uses a Content Modifier step to set a header named OrderType based on a value read from the payload. A subsequent Router step using XPath on the header always routes to the default branch. The developer confirmed the payload contains the expected value. What is the most likely cause?
Trap 1: The Content Modifier step must be configured with 'Overwrite'…
The Overwrite option controls what happens when a header or property with the same name already exists; it does not determine visibility. Even without Overwrite, a newly created header is visible downstream, so this setting cannot be the root cause of the routing failure.
Trap 2: The Router step evaluates XPath against the payload, not against…
The Router step can evaluate expressions against headers, properties, or the body depending on the expression type selected. Saying XPath can never reference headers is technically incorrect, and the real issue is likely the expression type chosen rather than the inability to read headers at all.
Trap 3: The Router step requires the header name to be prefixed with 'SAP_'…
There is no such prefix requirement for custom headers in SAP Cloud Integration routing expressions. Headers created by a Content Modifier are visible under their exact configured name, so inventing a reserved prefix does not explain the observed default-branch behaviour.
- A
The Content Modifier step must be configured with 'Overwrite' enabled for headers to be visible to downstream steps.
Why it fails: The Overwrite option controls what happens when a header or property with the same name already exists; it does not determine visibility. Even without Overwrite, a newly created header is visible downstream, so this setting cannot be the root cause of the routing failure.
- B
The Router step evaluates XPath against the payload, not against headers, so referencing a header in the XPath expression always fails.
Why it fails: The Router step can evaluate expressions against headers, properties, or the body depending on the expression type selected. Saying XPath can never reference headers is technically incorrect, and the real issue is likely the expression type chosen rather than the inability to read headers at all.
- C
The Content Modifier set a property instead of a header, and the Router is configured to read from headers, so the value is never found.
In SAP Cloud Integration, headers and exchange properties are distinct storage locations. If the Content Modifier wrote the value into a property but the Router expression references a header with the same name, the header will be empty and the default branch executes. Aligning the storage location fixes the routing.
- D
The Router step requires the header name to be prefixed with 'SAP_' to be visible to the routing expression.
Why it fails: There is no such prefix requirement for custom headers in SAP Cloud Integration routing expressions. Headers created by a Content Modifier are visible under their exact configured name, so inventing a reserved prefix does not explain the observed default-branch behaviour.