PreviousNext
Help > Schema > Load > CalculationError Property
CalculationError Property

Applies To

API.Load

Description

Gets the error codes of the calculation.

Syntax

Property CalculationError As API.Load.CalculationErrorEnum

Remarks

It contains a constant value presenting the errors and warnings raised in the calculation. The following are available.

Value

Description

Enumeration

1

Everything is OK. The calculation was successful without any errors. Use the FilledContainers member to access more detailed information for each filled container.

succeed

0

The list of cargoes in the shipment is empty. Check the Cargoes member of the shipment has at least one cargo defined. If this has been met, the calculation of the shipment did not make any result and the FilledContainers member must be empty.

EmptyCargoList

-2

(Internal use)

CargoWidthLongerThanLength

-3

Some cargoes have 0 at their Qty members. If this has been met, the calculation of the shipment was successful for the other cargoes and the FilledContainers member is available.

CargoHasZeroLoadCount

-4

Some cargoes are bigger than the container sizes. If this has been met, the calculation of the shipment was successful for the other cargoes and the FilledContainers member is available.

CargoIsTooBig

-6

The sizes of some containers in the shipment are incorrect. If this has been met, the calculation of the shipment was successful for the other containers and the FilledContainers member is available.

InvalidContainerSize

-7

Some cargoes have 0 at their SetRatio members. If this has been met, the calculation of the shipment was successful for the other cargoes and the FilledContainers member would have been filled.

CargoHasZeroSetCount

-8

The sizes of some cargoes in the shipment are incorrect. If this has been met, the calculation of the shipment was successful for the other cargoes and the FilledContainers member is available. Look at the CargoesLoaded and CargoesLeft properties of the Overview member to understand how many of the cargoes were loaded and left.

InvalidCargoSize

-9

Some cargoes have incorrect orientations. Check the OrientationAllowed member of some cargoes and make sure all the cargoes have at least one direction. If this has been met, the calculation of the shipment was successful for the other cargoes and the FilledContainers member is available.

InvalidCargoOrientations

-10

Some cargoes are too small to be placed in containers. If this has been met, the calculation of the shipment was successful for the other cargoes and the FilledContainers member is available.

CargoIsTooSmall

-20

The list of containers in the shipment is empty. Check the EmptyContainers member of the shipment has at least one container defined. If this has been met, the calculation of the shipment did not make any result and the FilledContainers member must be empty.

EmptyContainerList

-21

The sign into the server was not made because of the wrong account.

UnableToSignin

Data Type

API.Load.CalculationErrorEnum