Allowed identifier for the country of origin

Error FX-SCH-A-001173 Factur-X

Value of 'ram:ID' 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:ID is not included in the permitted code list for the country of origin. An empty value is allowed by the test condition.

What the rule means

ram:ID specifies the identifier for the country of origin. A value that is not permitted cannot be classified as a valid country identifier in this code list.

Please use an allowed identifier for the country of origin

The country identifier for the country of origin contains a value that is not permitted. Using an allowed value or leaving it empty can resolve this issue.

What to do
  1. Locate ram:ID within ram:OriginTradeCountry on the product in the invoice line.
  2. Check its value against the values permitted for the country identifier.
  3. Use a permitted value or leave ram:ID empty.
  4. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty value or a value listed in the enumeration of code list 10 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to ram:ID within ram:OriginTradeCountry on the product in an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedTradeProduct/ram:OriginTradeCountry/ram:ID
Test expression (assert/@test)
string-length($codeValue10)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=10]/enumeration[@value=$codeValue10]