Permitted account type code

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

A non-empty value of ram:TypeCode is not included in the code list used by this rule. An empty value satisfies this test.

What the rule means

ram:TypeCode identifies the account type for the receivable accounting account. A non-empty value must match the permitted code list.

Please check the account type code for the receivable account

The account type code in ram:ReceivableSpecifiedTradeAccountingAccount does not match the permitted code list. You can adjust the value or leave it empty.

What to do
  1. Locate ram:ReceivableSpecifiedTradeAccountingAccount in the settlement information.
  2. Check the value in ram:TypeCode.
  3. Generate the invoice again and validate it again.
Technical details

The test permits an empty value. Otherwise, ram:TypeCode is checked against the entries in code list ID 52.

Where the rule applies

The rule applies to ram:TypeCode in ram:ReceivableSpecifiedTradeAccountingAccount at settlement level.

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]