UBL-SR-52:Document reference shall occur maximum once
Fix: Duplicate document reference. Document reference can only appear once in the specified context.
Duplicate document reference. Document reference can only appear once in the specified context.
Engine Classification
Requires user confirmation before application
What is UBL-SR-52?
UBL-SR-52 is a fatal validation rule defined in the EN16931 specification. It validates the DocumentReference element in the UBL invoice XML.
When this rule fires, the invoice is rejected by Peppol access points and never reaches the buyer.
Target path: //cac:InvoiceLine/cac:DocumentReference
Why This Error Matters
Invoice will be rejected by EN16931 validators. These structural rules enforce cardinality and conditional requirements. Fix the duplicate element or provide the required companion element.
UBL-SR-52 is a hard failure — the invoice must be corrected and re-sent before it can reach the recipient.
Validator Behavior
- ·Causes invoice rejection
- ·Fails EN 16931 business rule validation
- ·Error returned: UBL-SR-52
- ·Specification: EN16931
How to Fix It
Locate the duplicate entries
Search for multiple cac:DocumentReference elements at //cac:InvoiceLine/cac:DocumentReference. Only one instance is allowed per the specification.
Remove the duplicates
Duplicate document reference. Document reference can only appear once in the specified context.
Re-validate your invoice
Upload the corrected invoice to confirm UBL-SR-52 is resolved.
XML Example
Generic example based on the rule's target XPath. Your actual XML structure may differ.
<!-- Required block is missing --> <!-- <cac:DocumentReference> ... </cac:DocumentReference> -->
<!-- Add the required block --> <cac:DocumentReference> <!-- child elements --> </cac:DocumentReference>
Technical Reference
//cac:InvoiceLine/cac:DocumentReferenceCommon Causes
- ·Document reference appears multiple times
- ·cac:DocumentReference shall occur maximum once
- ·Duplicate document reference in supporting documents
- ·Same reference type repeated in BG-24
- ·ERP exports multiple identical document references
Seeing this in production? The API handles UBL-SR-52 automatically. See the fix response →
Frequently Asked Questions
Duplicate document reference. Document reference can only appear once in the specified context.
Duplicate document reference. Document reference can only appear once in the specified context. You can also use Invoice Navigator's compliance engine to correct this automatically in your pipeline.
Yes, UBL-SR-52 is a critical error that will cause invoice rejection. It must be fixed before submission.
Many instances of UBL-SR-52 can be automatically corrected using Invoice Navigator's compliance engine. The fix is applied in your pipeline with full audit evidence.
Related Content
Last updated: 14 April 2026
Validate your invoice
Drop your XML here to check for UBL-SR-52
Fix UBL-SR-52 with one click
Upload your invoice and we'll suggest a fix for your review before applying it.