# BR-CIUS-PT-30

Source: https://xmlvalid.com/rules/BR-CIUS-PT-30

> If Additional Supporting Documents (BG-24) is used, the External document location (BT-124) or the Attached document (BT-125) shall be filled, or both.

- Level: error
- Rule sets: CIUS-PT rules (Portugal, UBL) 2.1.1
- Context: `cac:AdditionalDocumentReference`
- Test: `exists(cac:Attachment) and (not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject) and not(cac:Attachment/cac:ExternalReference/cbc:URI))`

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