Truugo

Validate XML/EDIFACT messages and share reports with ease.

Get started »

Sign up Free

Test case

Profile:
View profile
Message:
View instance
Report:
Print report
Status:
To inform author when reported errors have been resolved, set status to DONE.

Share

From:
Juha Ikävalko
Organization:
Agentit
Expires:
2098-05-30

Test report

Case overview

ProfileUBL 2.0 Invoice - DEMO

INVALID

Instance failed 4 test phases

StandardUBL 2.0
Message typeInvoice
InstanceUBL-Invoice-2.0 sample with errors.xml
UserJuha Ikävalko
Time2018-06-20 09:43:29

Test phases

PhaseImportanceResult
1Preconditions

Preconditions for this test case. These condition must be fullfilled to continue to actual validation.

CRITICALPASSED
2Base conditions

Validation for basic UBL message requirements. There is no point to continue validation if these requirements are not fulfilled.

CRITICALPASSED
3Message structure

Validation against UBL-Invoice-2.0 W3C XML Schema provided by OASIS.

MANDATORYFAILED
4Mandatory information

Validation for elements/data which must exist on each Invoice message.

MANDATORYFAILED
5Format constraints

Validation for data format constraints.

MANDATORYFAILED
6Integrity constraints

Validation for integrity constraints.

MANDATORYFAILED
Code explanations
CRITICAL
Phase must be passed to continue validation
MANDATORY
Phase must be passed to pass the test successfully
RECOMMENDED
Phase provides informative feedback on best practices etc.

Feedback

Message structure1 error

3.1Error code 1871

Line 15: Element 'SaleOrderID', This element is not expected. Expected is one of ( cbc:SalesOrderID, cbc:CopyIndicator, cbc:UUID, cbc:IssueDate, cbc:IssueTime, cbc:CustomerReference, cac:DocumentReference ).

Mandatory information2 errors

4.1Message identifier

Condition

Message identifier is stated on a message.

Error notice

Line 2: Invoice, missing non-empty ID

4.5Line identifier

Condition

Line identifier is stated on each invoice line.

Error notice

Line 192: /Invoice/cac:InvoiceLine, missing non-empty ID

Format constraints2 errors

5.1Payment means code

Condition

Payment means code is based on UN/ECE 4461 codelist version D03A.

Error notice

Line 113: /Invoice/cac:PaymentMeans/cbc:PaymentMeansCode="Z20"

5.2Allowance type

Condition

Allowance reason code is either trade discount "17" or deduction for late delivery "20".

Error notice

Line 167: /Invoice/cac:AllowanceCharge/cbc:AllowanceChargeReasonCode="18"

Integrity constraints2 errors

6.1Invoice issue date vs due date

Condition

Invoice due date is later than invoice issue date.

Error notice

Line 114: /Invoice/cac:PaymentMeans/cbc:PaymentDueDate = "2004-07-21" (Line 9, /Invoice/cbc:IssueDate = "2005-06-27")

6.2Tax subtotal sum

Condition

Tax subtotal matches sum of tax amounts in each tax category.

Error notice

Line 172: /Invoice/cac:TaxTotal/cbc:TaxAmount = 17.50 <> 17.40