Allowed code for the accounting account TypeCode

Error FX-SCH-A-000949 Factur-X

Value of 'ram:TypeCode' is not allowed.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The value of ram:TypeCode is not present in the code list used by this rule. This test also permits an empty value.

What the rule means

The code identifies the type of the specified accounting account. A value from the designated code list allows the account type to be classified unambiguously.

Please use an allowed code for the accounting account `TypeCode`

The ram:TypeCode value for the accounting account does not match its designated code list. Use a listed code or leave the value empty.

What to do
  1. Locate ram:TypeCode in ReceivableSpecifiedTradeAccountingAccount.
  2. Check the value of ram:TypeCode.
  3. Use a code included in the designated code list or leave the value empty.
  4. Generate the invoice again and validate it.
Technical details

The test accepts an empty value or a value listed as an enumeration in code list ID 52.

Where the rule applies

The rule applies to ram:TypeCode within ReceivableSpecifiedTradeAccountingAccount in the invoice settlement information.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:ReceivableSpecifiedTradeAccountingAccount/ram:TypeCode
Test expression (assert/@test)
string-length($codeValue52)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=52]/enumeration[@value=$codeValue52]