# MYDATA-227

Source: https://xmlvalid.com/rules/MYDATA-227

> An amount cannot exist (must be null) since its category is null (invoice line …): each of withheldAmount, stampDutyAmount, feesAmount and otherTaxesAmount comes with its category.

- Level: error
- Rule sets: myDATA checks of AADE (Greece) myDATA 2.0.2 of September 2026
- Context: `inv:invoiceDetails`
- Test: `(empty(inv:withheldAmount) or exists(inv:withheldPercentCategory)) and (empty(inv:stampDutyAmount) or exists(inv:stampDutyPercentCategory)) and (empty(inv:feesAmount) or exists(inv:feesPercentCategory)) and (empty(inv:otherTaxesAmount) or exists(inv:otherTaxesPercentCategory))`

Validate a document against these rules: https://xmlvalid.com/validate
