Troubleshooting
Problem
Attempts to create an return for Sales Order having related Purchase Order as purged thrown the error ErrorCode="YFS10003" ErrorDescription="YFS:Invalid Order" in RCP SOM.
Symptom
Steps to reproduce:
- Create a Sales Order.
- Create a Purchase Order associated to this order.
- Purge Purchase Order , then Purge Sales Order.
- Go to SOM and search for Sales Order and go to the order summary screen.
This restores the Sales Order to live table from history table. Purchase Order still remains in history as it is not restored.
- Try to create return on this Sales Order.
It gives error that order can not be found for the related Purchase Order while trying to create the return
Cause
restoreOrder API restores the related Return/Exchange/Master orders only and doesn't seem to restore POs
Resolving The Problem
If you are not using Containers - you can override the default OOB output template for getOrderLinesWithTransactionQuantity API call and remove the <Containers/> element.
Changes to be made to the template is as follows:
- Goto resources.jar to edit the output template (getOrderLinesWithTransactionQuantity_output.xml) of getOrderLinesWithTransactionQuantity API.
Path => INSTALLED_FOLDER\external_deployments\smcfs.ear\resources.jar\template\com.yantra.pca.ycd.rcp\com.yantra.pca.ycd.rcp.tasks.returnEntry.screens.YCDReturnLineSelection\namespaces\
- Edit the output template (getOrderLinesWithTransactionQuantity_output.xml) to remove the <Containers/> element from it.
The element structure to be removed is as follows:
<Containers>
<Container>
<ContainerDetails>
<ContainerDetail>
<ShipmentTagSerials>
<ShipmentTagSerial/>
</ShipmentTagSerials>
<ShipmentLine >
<ShipmentLineInvAttRequest/>
</ShipmentLine>
</ContainerDetail>
</ContainerDetails>
<Shipment />
</Container>
</Containers>
- After removal of above element, save the getOrderLinesWithTransactionQuantity_output.xml.
- Rebuild resource.jar and smcfs.ear file.
- Deploy the smcfs.ear
[template\com.yantra.pca.ycd.rcp\com.yantra.pca.ycd.rcp.tasks.returnEntry.screens.YCDReturnLineSelection\namespaces\getOrderLinesWithTransactionQuantity_output.xml ] helps create return even if the Sales Order and Purchase Order are purged.
[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21963558