BT-43 should contain exactly one @ sign, which should not be flanked by a space or a dot, but should be flanked by at least two characters on both sides. A dot should not be at the beginning or at the end.
The value in ram:URIID does not match the expected email format. It must contain exactly one @, have at least two characters on each side of it, and must not start or end with a dot. A dot or whitespace must not be directly next to the @.
BT-43 contains the seller contact’s electronic address. A correctly structured email format is needed for the contact address to be identifiable as an email address.
The seller contact’s email address does not match the expected format. Update the address in the seller’s contact details.
- Correct the seller contact’s email address.
- Check the value for
Contact.EmailAddressor the call toSetSellerContact(...). - Ensure there is exactly one
@, at least two characters on each side, and no dot at the beginning, at the end, or directly next to the@. - Generate the invoice again and validate it once more.
<ram:EmailURIUniversalCommunication> <ram:URIID>a@b.de</ram:URIID> </ram:EmailURIUniversalCommunication>
<ram:EmailURIUniversalCommunication> <ram:URIID>ab.cd@example.de</ram:URIID> </ram:EmailURIUniversalCommunication>
Contact.EmailAddress(SellerTradeParty/ DefinedTradeContact: BT-43)FacturXInvoice.SetSellerContact(name, orgunit, emailAddress, phoneno, faxno)(emailAddress: BT-43)
Technical details
The test normalizes whitespace in ram:URIID and checks the value against $XR-EMAIL-REGEX.
The email address of the seller’s contact in ram:DefinedTradeContact.
rule/@context)assert/@test)