error
XML Syntax & XSD
CII-SR-145
CII-SR-145: UN/CEFACT CII structural element restriction (EN 16931 / CII / UBL)
Description & Regulatory Context
Validation rule CII-SR-145 (severity: error) belongs to 'XML Syntax & XSD'. Factur-X / ZUGFeRD profile restriction preventing unexpected or misplaced XML tags in CrossIndustryInvoice. Applies to fields: EN 16931 / CII / UBL.
Common Rejection Cause
An expected XML element, code-list value, or arithmetic constraint enforced by CII-SR-145 (EN 16931 / CII / UBL) is missing, misplaced, or violates the target Factur-X / ZUGFeRD / XRechnung profile.
How to Fix in Your System
Run FacturLint 1-click PDF/A-3b repair if marked auto-repairable; otherwise update the source XML/ERP mapping for (EN 16931 / CII / UBL) against the compliant snippet below and re-validate.
Compliant XML Snippet
<!-- Rule CII-SR-145 | Context: Line Price & Terms (BG-29 / SpecifiedLineTradeAgreement) | Profiles: EXTENDED-CTC-FR -->
<ram:SpecifiedLineTradeAgreement>
<ram:TradeComparisonReferencePrice>...</ram:TradeComparisonReferencePrice>
<ram:NetPriceProductTradePrice>...</ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>