VRBL-INV-SYSTEM-53

Basic Info

Rule If there is a value for Financial Institution Branch ID, 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/cac:FinancialInstitutionBranch/cbc:ID
length = 500

Implementation

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