What is wrong
The value of TypeCode is not a single code from the UNTDED 6313+Factur-X-Extension code list. The test requires an allowed list entry without embedded spaces.
What the rule means
Using the specified codes enables automated processing of item attributes without bilateral reconciliation.
Please use an allowed code for the item attribute
The item attribute code does not match a single allowed list entry. Use a code from the UNTDED 6313+Factur-X-Extension code list.
What to do
- Check the value in
ApplicableProductCharacteristic.TypeCode.
- Replace it with a single code from the UNTDED 6313+Factur-X-Extension code list.
- Make sure the code contains no embedded spaces.
- Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ApplicableProductCharacteristic>
<ram:TypeCode>UNKNOWN</ram:TypeCode>
</ram:ApplicableProductCharacteristic>
✓ Correct
<ram:ApplicableProductCharacteristic>
<ram:TypeCode>COLOR_TEXT</ram:TypeCode>
</ram:ApplicableProductCharacteristic>
Technical details
The test normalizes whitespace, rejects values containing embedded spaces, and then checks for an exact match in the included code list.
Where the rule applies
The rule applies to the code in TypeCode of an ApplicableProductCharacteristic.
Context (rule/@context)
//ram:ApplicableProductCharacteristic/ram:TypeCode
Test expression (assert/@test)
not(contains(normalize-space(.), ' '))
and contains(' A AAA AAB AAC AAD AAF AAG AAH AAI AAJ AAK AAM AAN AAO AAP AAQ AAR AAS AAT AAU AAV AAW AAX AAY AAZ ABA ABB ABC ABD ABE ABF ABG ABH ABI ABJ ABK ABL ABM ABN ABO ABP ABS ABT ABX ABY ABZ ACA ACE ACG ACN ACP ACS ACV ACW ACX ADR ADS ADT ADU ADV ADW ADX ADY ADZ AEA AEB AEC AED AEE AEF AEG AEH AEI AEJ AEK AEL AEM AEN AEO AEP AEQ AER AES AET AEU AEV AEW AEX AEY AEZ AF AFA AFB AFC AFD AFE AFF AFG AFH AFI AFJ AFK AFL AFM AFN AFO AFP AFQ AFR AFS AFT AFU AFV AFW AFX B BL BMY BMZ BNA BNB BNC BND BNE BNF BNG BNH BNI BNJ BNK BNL BNM BNN BNO BNP BNQ BNR BNS BNT BNU BNV BNW BNX BNY BNZ BR BRA BRB BRC BRD BRE BRF BRG BRH BRI BRJ BRK BRL BRM BRN BRO BRP BRQ BRR BRS BRT BRU BRV BS BSW BSX BSY BSZ BTA BTB BTC BTD BTE BTF BTG BTH BTI BTJ BTK BTL BTM BW CHN CHO CM CT CV CZ D DI DL DN DP DR DS DW E EA F FI FL FN FV GG GW HF HM HT IB ID L LM LN LND M MO MW N OD PRS PTN RA RF RJ RMW RP RUN RY SQ T TC TH TN TT VGM VH VW WA WD WM WU XH XQ XZ YS ZAL ZAS ZB ZBI ZC ZCA ZCB ZCE ZCL ZCO ZCR ZCU ZFE ZFS ZGE ZH ZK ZMG ZMN ZMO ZN ZNA ZNB ZNI ZO ZP ZPB ZS ZSB ZSE ZSI ZSL ZSN ZTA ZTE ZTI ZV ZW ZWA ZZN ZZR ZZZ BEST_BEFORE_DATE COLOR_TEXT COMMISSION DEPOSIT_SYSTEM DEPOSIT_TYPE ENERGY_CLASS EXPIRATION_DATE FEE KIND_OF_ARTICLE MATERIAL METER_LOCATION METER_NUMBER ORGANIC_CONTROL_BODY PACKAGING_MATERIAL PACKAGING_TYPE PROMOTIONAL_VARIANT SEAL_NUMBER SIZE_CODE SIZE_TEXT TRADING_UNIT WASTE_CODE WASTE_FRACTION WEEE_NUMBER ', concat(' ', normalize-space(.), ' '))