IBM Support

confirmShipment throws YDM00082: Shipment line being added does not match attributes of Shipment

Troubleshooting


Problem

confirmShipment throws YDM00082: Shipment line being added does not match attributes of Shipment

Symptom

Confirming a shipment for a return order throws an error as attached below.

Error Message

Error stack trace :

<Errors>

- <Error ErrorCode="YDM00082" ErrorDescription="Shipment line being added does not match attributes of Shipment [UniqueExceptionId='19216800905312640704534210000000000007']" ErrorRelatedMoreInfo="">
<Attribute Name="ErrorCode" Value="YDM00082" />
<Attribute Name="ErrorDescription" Value="Shipment line being added does not match attributes of Shipment" />
<Attribute Name="ErrorRelatedMoreInfo" Value="" />
<Attribute Name="OrderHeaderKey" Value="201001xxxx022226248" />
<Attribute Name="ShipmentLineKey" Value="201001xxxxx05326316" />
<Attribute Name="ShipmentKey" Value="201001211xxxxx26317" />
<Stack>com.yantra.yfc.util.YFCException at com.yantra.ydm.business.YDMChangeShipmentImpl.throwErrorForShipmentLine(YDMChang eShipmentImpl.java:6924) at com.yantra.ydm.business.YDMChangeShipmentImpl.canAddLineToShipment(YDMChangeShip mentImpl.java:5442) at com.yantra.ydm.business.YDMChangeShipmentImpl.validateCreateShipmentLine(YDMChan geShipmentImpl.java:5240) at com.yantra.ydm.business.YDMChangeShipmentImpl.createShipmentLine(YDMChangeShipme ntImpl.java:5169) at com.yantra.ydm.business.YDMChangeShipmentImpl.updateShipmentLines(YDMChangeShipm entImpl.java:4285) at com.yantra.ydm.business.YDMChangeShipmentImpl.updateShipment(YDMChangeShipmentIm pl.java:2813) at

Resolving The Problem

The issue was due to the fact that ShipNode and ReceivingNode get exchanged during the return order creation and subsequent shipment confirmation.

In our product, we actually retain the logic of ShipNode and ReceivingNode in the same format as in a sales order.

Therefore if we try to exchange the mapping, it will throw with the above error.

This should not be a point of concern because in the shipment screen, we show the correct values for returnTo and returnFrom nodes.

Moreover, inventory does increase in the receiving node when a receipt for the return shipment is received in the node.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

NFX8454

Product Synonym

[<p><b>]Function Area[</b><p>];confirmShipment API;[<p><b>]Severity[</b><p>];Normal

Document Information

Modified date:
16 June 2018

UID

swg21556224