VRBL-INV-SYSTEM-52

Basic Info

Rule If there is a value for Payee Financial Account Name, the allowed maximum number of characters is 500.
Context /ubl:Invoice
Pattern vrbl-invoice-system
Severity fatal

Used Template: SystemLengthLimit

Parameter Value
probe = cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:Name
length = 500

Implementation

not(boolean(cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:Name))
or
string-length(normalize-space((cac:PaymentMeans/cac:PayeeFinancialAccount/cbc:Name)[1])) <= 500