Element 'ram:TypeCode' must occur exactly 1 times.
Within ram:SpecifiedTradeSettlementPaymentMeans, ram:TypeCode does not occur exactly once. The element is either missing or occurs more than once.
ram:TypeCode specifies the payment type. Exactly one element ensures that the payment type is provided once in this payment information section.
ram:TypeCode is missing from the payment information or appears more than once. You can correct this by including it once.
- Open
ram:SpecifiedTradeSettlementPaymentMeans. - Make sure it contains exactly one
ram:TypeCode. - Regenerate the invoice and validate it again.
<ram:SpecifiedTradeSettlementPaymentMeans/>
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode/> </ram:SpecifiedTradeSettlementPaymentMeans>
Technical details
The rule counts the direct ram:TypeCode child elements of ram:SpecifiedTradeSettlementPaymentMeans and requires a count of 1.
The rule applies to the ram:TypeCode element inside ram:SpecifiedTradeSettlementPaymentMeans.
rule/@context)assert/@test)