Name attribute in type code · CII-DT-008
- Severity · Error
- Applies to · CII
- Editorial review pending
This issue concerns the field for name attribute in the type code section. The rule checks for the presence of the field regardless of its value.
As of
Who can correct it?
The sender can correct the invoice.
How to fix it
- Omit the attribute @name at the reported location in the export. Check whether any needed data belongs in a field intended for it.
- CII · /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode/@name
Rule text and source
Paraphrase · The CII mapping excludes the attribute @name from the type code section.
Message to the sender
Hello,
Validation of the invoice XML for {invoiceNumber} returned CII-DT-008. The message concerns name attribute in type code. Please correct the export and send me the updated XML file.
Thank you.Example
This example uses the invoice type code in the invoice header. The corrected entry keeps its value and drops the extra attribute.
CII
/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode/@name
Fails the rule
<ram:TypeCode name="Commercial invoice">380</ram:TypeCode>
Corrected
<ram:TypeCode>380</ram:TypeCode>Rule versions
CEN · EN 16931 (KoSIT) 1.3.16
CEN · EN 16931 1.3.17