XSDHub

FX-SCH-A-000555: Document type rejected by Factur-X

The document type is checked against the profile code database rather than accepted as arbitrary text. The fixture substitutes 999 for 380 in ExchangedDocument/TypeCode. This type must agree with the transaction; changing it to an invoice code is not a general conversion of credit notes or corrections. The European type-list diagnostic can accompany the Factur-X-specific message.

Source predicates and fields

CII facturx evaluates /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode and checks the selected field condition, including the alternatives in the predicate; the referenced elements are ..

context: /rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:TypeCode
test: string-length($codeValue2)=0 or document('FACTUR-X_EN16931_codedb.xml')/codedb/cl[@id=2]/enumeration[@value=$codeValue2]
$codeValue2 := .

The controlled example

.//ram:TypeCode : 999 → 380

999
380

Failing fragment · Passing fragment

Co-occurrence in our mutation corpus

In the 1,338 stored synthetic mutations, FX-SCH-A-000555 appeared in 0 runs. No other code was recorded alongside this code in those runs.

Synthetic design, cohorts and count definitions

Separate round-7 synthetic pair, other codes: BR-CL-01, PEPPOL-EN16931-R008

Engine diagnostic and report location

Value of 'ram:TypeCode' is not allowed.

/*:CrossIndustryInvoice[namespace-uri()='urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100'][1]/*:ExchangedDocument[namespace-uri()='urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100'][1]/*:TypeCode[namespace-uri()='urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100'][1]

Factur-X 1.09.2 sources · NOTICES