SchemaGuard by Ironbark Digital · EN 16931 / Peppol / XRechnung Reference
← All 294 EN 16931 / Peppol Rules & Live Validator
FATAL ATW Library Diagnostic BT/BG Fields: BG-27

ATW-NUMBER-NOT-FINITE — E-Invoice Validation Rule & Fix

Fixture ID: allowancePercentNaN · XPath: N/A (Computed / Semantic Rule)

1. Why This Rule Triggers (Diagnostic Message)

lines[0].allowances[0].percentage is NaN. The XML type behind it, xs:decimal, has no NaN or infinity, so the document cannot be written.

2. How to Fix ATW-NUMBER-NOT-FINITE

Check the arithmetic that produced it: a division by zero, or a sum over a missing value, is the usual cause.

3. Valid Code / Payload Example

Test & Validate XML / JSON in Live SchemaGuard Validator →