Element 'ram:RoleCode' may occur at maximum 1 times.
The SellerTradeParty contains multiple RoleCode elements. No more than one may occur.
The XML structure allows at most one RoleCode for the seller. Multiple such elements would exceed this defined cardinality.
More than one RoleCode element is present for the seller. You can resolve this by ensuring that no more than one is included.
- Locate the
SellerTradePartyelement. - Make sure it contains no more than one
RoleCode. - Generate the invoice again and validate it.
<ram:SellerTradeParty> <ram:RoleCode>...</ram:RoleCode> <ram:RoleCode>...</ram:RoleCode> </ram:SellerTradeParty>
<ram:SellerTradeParty> <ram:RoleCode>...</ram:RoleCode> </ram:SellerTradeParty>
Technical details
The rule counts the RoleCode elements within SellerTradeParty; zero or one is allowed.
The rule applies to RoleCode within SellerTradeParty.
rule/@context)assert/@test)