Shipment Cost Allocation Failure In 6.2 When A Cost is 0.00, the Error is java.lang.Exception: Cannot adjust, The Source Value is zero. (Doc ID 1375601.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle Freight Payment, Billing, and Claims - Version: 6.2.0 to 6.2.3 - Release: 6.2 to 6.2
Information in this document applies to any platform.

Symptoms


On OTM version 6.2.0 when a Shipment has Rate Costs where one or more of the costs is 0.00 USD OTM cannot allocate the full cost of the Shipment and the following error is encountered.

ERROR
-----------------------
Error Exception java.lang.Exception: Cannot adjust, The Source Value is zero.

java.lang.Exception: Cannot adjust, The Source Value is zero.
at glog.business.advancedallocation.engine.AllocationEngine.checkAndAdjust(AllocationEngine.java:103)
at glog.business.advancedallocation.engine.AllocationEngine.allocate(AllocationEngine.java:69)
at glog.business.advancedallocation.engine.AllocationManager.performAllocation(AllocationManager.java:308)
at glog.business.advancedallocation.AllocationActionExecutor.allocateShipmentCosts(AllocationActionExecutor.java:271)
at glog.business.advancedallocation.AllocationSessionBean.allocateShipment(AllocationSessionBean.java:38)
at glog.business.advancedallocation.AllocationSessionServerSideEJBWrapper.allocateShipment(AllocationSessionServerSideEJBWrapper.java:40)
at glog.business.advancedallocation.AllocationSessionHome_af67ov_EOImpl.allocateShipment(AllocationSessionHome_af67ov_EOImpl.java:137)
at glog.server.agent.business.shipment.AllocateShipment.execute(AllocateShipment.java:48)
at glog.server.agent.ActionWorkflow.execute(ActionWorkflow.java:50)
at glog.server.workflow.WorkflowSessionBean.execute(WorkflowSessionBean.java:64)
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper.execute(WorkflowSessionServerSideEJBWrapper.java:38)
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper_61kh96_EOImpl.execute(WorkflowSessionServerSideEJBWrapper_61kh96_EOImpl.java:206)
at glog.server.workflow.WorkflowManager.execute(WorkflowManager.java:352)
at glog.server.workflow.Trigger.trigger(Trigger.java:122)
at glog.util.event.MemoryEventQueueRunnable.processEvent(MemoryEventQueueRunnable.java:147)
at glog.util.event.MemoryEventQueueRunnable.run(MemoryEventQueueRunnable.java:98)
at glog.util.event.EventThread.run(EventThread.java:83)
at java.lang.Thread.run(Thread.java:619)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:

1 - Log onto an OTM 6.2 system.

2 - Create a rate with two rate costs, one for 9999 and one for 0.

3 - Create and plan an Order.

4 - On the resulting shipment allocate the costs, the error is encountered.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms