What it means
The context selects a ram:AdditionalReferencedDocument containing at least one ram:TypeCode with value 50, then checks each ram:TypeCode child against code list 39. It does not necessarily check only the element containing 50. Empty values pass this code-list test.
Why it matters
A document type code identifies what a reference represents. The Extended profile restricts the codes used in this position.
How to fix it
Find the reference containing type code 50 under ram:ApplicableHeaderTradeAgreement. Check all its ram:TypeCode elements against code list 39 and correct any unsupported value without changing the reference's meaning. If the reported value is 50 itself, ask your software supplier to check the export and applicable rule files rather than guessing another code. Re-export and recheck.
Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice
Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta
The rule as published
Value of 'ram:TypeCode' is not allowed. Where this rule applies
| Rule set | Version |
|---|---|
| Factur-X 1.09 EXTENDED | 1.0.9-2 |
| ZUGFeRD 2.5 EXTENDED | 2.5.2 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-000643 still fails, and which other rules do.
Related rules
- FX-SCH-A-000644 Check the supporting attachment's file type
- FX-SCH-A-000645 Add a format attribute to the supporting document date
- FX-SCH-A-000646 Check the supporting document date format
- FX-SCH-A-000647 Check the supporting document type code
- FX-SCH-A-000648 Check the country code in your delivery terms
- FX-SCH-A-000649 Keep at most one buyer agent ram:ID