An Invoice shall have a Specification identifier (BT-24).
The invoice does not contain a non-empty specification identifier in rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID.
The specification identifier states which invoice specification the document was created for. It allows the invoice to be associated with its intended specification context.
Your invoice is missing its specification identifier. You can set it through Profile or SpecificationIdentifier.
- Set a non-empty specification identifier for the invoice.
- Check the value through
ProfileorSpecificationIdentifier. - Generate the invoice again and validate it once more.
<rsm:ExchangedDocumentContext> <ram:GuidelineSpecifiedDocumentContextParameter> <ram:ID/> </ram:GuidelineSpecifiedDocumentContextParameter> </rsm:ExchangedDocumentContext>
<rsm:ExchangedDocumentContext> <ram:GuidelineSpecifiedDocumentContextParameter> <ram:ID>urn:example:invoice-specification</ram:ID> </ram:GuidelineSpecifiedDocumentContextParameter> </rsm:ExchangedDocumentContext>
FacturXInvoice.Profile(BT-24)FacturXInvoice.SpecificationIdentifier(BT-24)SpecificationIdentifiers(BT-24)
Technical details
The test checks whether rsm:ExchangedDocumentContext/ram:GuidelineSpecifiedDocumentContextParameter/ram:ID is not equal to the empty string.
The rule applies to the invoice document context. It checks the ram:ID within ram:GuidelineSpecifiedDocumentContextParameter.
rule/@context)assert/@test)