Allocation Fails If One Of The Costs Being Allocated Is Zero. (Doc ID 1362151.1)

Last updated on JULY 09, 2014

Applies to:

Oracle Transportation Management - Version: 6.2.1 and later   [Release: 6.2 and later ]
Information in this document applies to any platform.

Symptoms

When attempting to plan a shipment using a Rate Record where the cost is set to $0.00 and having an agent that Allocate Voucher, the agent fails with the following error and the shipment get created with a red flag.

ERROR
-----------------------
java.lang.Exception: Cannot adjust, The Source Value is zero.
at glog.business.advancedallocation.engine.AllocationEngine.checkAndAdjust(AllocationEngine.java:149)
at glog.business.advancedallocation.engine.AllocationEngine.allocate(AllocationEngine.java:100)
at glog.business.advancedallocation.engine.AllocationManager.performAllocation(AllocationManager.java:330)
at glog.business.advancedallocation.AllocationActionExecutor.allocateShipmentCosts(AllocationActionExecutor.java:293)
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:146)
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)

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