errorcii-d16b

CII-SR-002:Missing ExchangedDocument context

CII documents must include the ExchangedDocumentContext header.

Severity
Fatal
Rule set
cii-d16b
Country
All EU
Fix type
BLOCKED

Engine Classification

Financial or legal field · Modification blocked by policy

Reason: CII documents require the ExchangedDocumentContext header element. This structural requirement must be implemented in your CII document generator. Contact your software vendor for CII format compliance.

What is CII-SR-002?

CII-SR-002 is a fatal validation rule defined in the cii-d16b specification. It validates the rsm:ExchangedDocumentContext element under rsm:CrossIndustryInvoice in the UBL invoice XML.

When this rule fires, the invoice is non-compliant and will be rejected by Peppol access points and national validation services. The sending system receives a rejection response and the invoice does not reach the buyer.

Target path: XPath: /rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext

This error requires manual correction — financial fields are protected by policy.

Why This Error Matters

Document context identifies the profile and rules for processing.

CII-SR-002 is a hard failure. Invoices that trigger this rule are rejected at the access point and never reach the recipient. In Peppol networks, this means your sending system receives an MLR (Message Level Response) with a rejection status. The invoice must be corrected and re-sent, adding delay to your payment cycle.

Validator Behavior

  • ·Causes invoice rejection
  • ·Fails CII schema validation
  • ·Error returned: CII-SR-002
  • ·Specification: cii-d16b

How to Fix It

1.

Add context

ExchangedDocumentContext is required

2.

Specify profile

EN16931 or country-specific profile

3.

Add BusinessProcessSpecifiedDocumentContextParameterID

For Peppol or specific process

XML Example

Generic example based on the rule's target XPath. Your actual XML structure may differ.

Before
<!-- Triggers validation error -->
<rsm:ExchangedDocumentContext></rsm:ExchangedDocumentContext>
After
<!-- Corrected -->
<rsm:ExchangedDocumentContext>VALID_VALUE</rsm:ExchangedDocumentContext>

Technical Reference

XPathXPath: /rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext
Speccii-d16b

Code Example

<rsm:ExchangedDocumentContext>
  <ram:GuidelineSpecifiedDocumentContextParameterID>
    urn:cen.eu:en16931:2017
  </ram:GuidelineSpecifiedDocumentContextParameterID>
</rsm:ExchangedDocumentContext>

Common Causes

  • ·Missing context block
  • ·Wrong profile identifier
  • ·Incomplete context

Seeing this in production? The API handles CII-SR-002 automatically. See the fix response →

Commonly Seen In

ZUGFeRD/Factur-X generators

Frequently Asked Questions

CII documents must include the ExchangedDocumentContext header.

Add ExchangedDocumentContext with GuidelineSpecifiedDocumentContextParameterID. You can also use Invoice Navigator's automatic Fixer tool to correct this instantly.

Yes, CII-SR-002 is a critical error that will cause invoice rejection. It must be fixed before submission to ensure your invoice is accepted by the recipient's system.

Many instances of CII-SR-002 can be automatically corrected using Invoice Navigator's Fixer tool. Upload your invoice and the tool will identify and fix common issues, including missing exchangeddocument context.

CII-SR-002 is commonly seen in exports from ZUGFeRD/Factur-X generators. These software packages sometimes generate invoices that need adjustment to meet full compliance standards.

Related Errors

Last updated: 18 January 2026

Share this guide:

Handle CII-SR-002 Automatically in Your Pipeline

The compliance engine auto-remediates this error with controlled safety policies and evidence pack generation.