Each "ID of parent line" (BT-X-304) must refer to an existing "ID of invoice item" (BT-126).
The value of ParentLineID does not match the LineID of any invoice line in the invoice. The reference to the parent line therefore cannot be resolved.
ParentLineID must refer to the identifier of an existing invoice line so that the association with the parent line can be followed.
The parent line identifier ParentLineID does not match any LineID in the invoice. Link the line using the identifier of an existing invoice line.
- Check the value in
AssociatedDocument.ParentLineID. - Make sure it matches an existing
AssociatedDocument.LineID. - Regenerate the invoice and validate it again.
<ram:IncludedSupplyChainTradeLineItem> <ram:AssociatedDocumentLineDocument> <ram:LineID>1</ram:LineID> <ram:ParentLineID>9</ram:ParentLineID> </ram:AssociatedDocumentLineDocument> </ram:IncludedSupplyChainTradeLineItem>
<ram:IncludedSupplyChainTradeLineItem> <ram:AssociatedDocumentLineDocument> <ram:LineID>1</ram:LineID> </ram:AssociatedDocumentLineDocument> </ram:IncludedSupplyChainTradeLineItem> <ram:IncludedSupplyChainTradeLineItem> <ram:AssociatedDocumentLineDocument> <ram:LineID>2</ram:LineID> <ram:ParentLineID>1</ram:ParentLineID> </ram:AssociatedDocumentLineDocument> </ram:IncludedSupplyChainTradeLineItem>
AssociatedDocument.LineID(BT-126)TradeLineItem.AssociatedDocument(BT-126)AssociatedDocument.ParentLineID(BT-X-304)TradeLineItem.SetParentLineId(parentLineId)(BT-X-304)
Technical details
The test compares the normalized value of ParentLineID with the normalized LineID values of all invoice lines and requires at least one match.
The rule applies to invoice lines in IncludedSupplyChainTradeLineItem that have a ParentLineID.
rule/@context)assert/@test)