# FX-SCH-A-000162

Source: https://xmlvalid.com/rules/FX-SCH-A-000162

> Value of 'ram:SubjectCode' is not allowed.

- Level: error
- Rule sets: Factur-X BASIC WL rules 1.09
- Context: `/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IncludedNote/ram:SubjectCode`
- Test: `string-length($codeValue4)=0 or document('FACTUR-X_BASIC-WL_codedb.xml')/codedb/cl[@id=4]/enumeration[@value=$codeValue4]`

> Value of 'ram:SubjectCode' is not allowed.

- Level: error
- Rule sets: Factur-X BASIC rules 1.09
- Context: `/rsm:CrossIndustryInvoice/rsm:ExchangedDocument/ram:IncludedNote/ram:SubjectCode`
- Test: `string-length($codeValue4)=0 or document('FACTUR-X_BASIC_codedb.xml')/codedb/cl[@id=4]/enumeration[@value=$codeValue4]`

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