#IF(#FormErrors.Reason.WebserviceAuthorizationFailed)
{AuthenticationFailure}
{BarCodeWebserviceAuthorizationFailed}
{CorrectSettings}
#ELSIF(#FormErrors.Reason.PermissionDenied)
{AuthenticationFailure}
{CannotDelete}
#ELSIF(#FormErrors.Form.ExportShippingLabels)
{ExportErrors}
#LOOP(#FormErrors.Form.ExportShippingLabels.Errors)
#LOCAL("FormErrorPrinted", 1)
#IF(#Reason EQ "MandatoryFieldLost")
{GeneralError}
#ENDIF
#IF(#Reason EQ "WrongFormat")
{GeneralError}
#ENDIF
#IF(#Reason EQ "TagNotAvailable")
{AddressError}
#ENDIF
#IF(#Reason EQ "NDIParcelNumbernotAvailable")
{GeneralError}
#ENDIF
#IF(#Reason EQ "ParameterMissing")
{GeneralError}
#ENDIF
#IF(#Reason EQ "CannotMakerouting")
{CannotMakerouting}
#ENDIF
#IF(#Reason EQ "NeededTemplateFile")
{GeneralError}
#ENDIF
#IF(#Reason EQ "InterfaceCannotOpened")
{GeneralError}
#ENDIF
#IF(#Reason EQ "ExtraWeight")
{ExtraWeight}
#ENDIF
#IF(#Reason EQ "T205With2kgMore")
{T205With2kgMore}
#ENDIF
#IF(#Reason EQ "TransactionCannotBeStored")
{GeneralError}
#ENDIF
#IF(#Reason EQ "CheckDigitError")
{GeneralError}
#ENDIF
#IF(#Reason EQ "NoIntervalfound")
{GeneralError}
#ENDIF
#IF(#Reason EQ "ProductCodeNotValid4Country")
{ProductCodeNotValid4Country}
#ENDIF
#IF(#Reason EQ "DateNotToday")
{DateNotToday}
#ENDIF
#IF(#Reason EQ "ExpressParcelAfter15")
{GeneralError}
#ENDIF
#IF(#Reason EQ "TimeNotPossible")
{TimeNotPossible}
#ENDIF
#IF(#Reason EQ "TodayNotFriday")
{TodayNotFriday}
#ENDIF
#IF(#Reason EQ "ParcelNumberAlreadyUsed")
{ParcelNumberAlreadyUsed}
#ENDIF
#IF(#Reason EQ "WrongParcelNumber")
{InvalidCombination}
#ENDIF
#IF(#Reason EQ "WrongProductServiceCombination")
{InvalidCombination}
#ENDIF
#IF(#Reason EQ "RecordNotFound")
{RecordNotFound}
#ENDIF
#IF(#Reason EQ "GeneralSystemError")
{GeneralError}
#ENDIF
#IF(#Reason EQ "SystemFailed")
{GeneralError}
#ENDIF
#IF((#Reason EQ "NoSocketCreated") OR (#Reason EQ "SendFailed") OR (#Reason EQ "ReceiveFailed"))
{SocketComunicationProblem}
#ENDIF
#IF(#Reason EQ "NoErrorReturned")
{GeneralError}
#ENDIF
#IF(#Reason EQ "CancelFailed")
{GeneralError}
#ENDIF
#IF(#Reason EQ "StdIntervalEnded")
{GeneralError}
#ENDIF
#IF(#Reason EQ "PickReturnIntervalEnded")
{GeneralError}
#ENDIF
#IF(#Reason EQ "CodIntervalEnded")
{GeneralError}
#ENDIF
#IF(#Reason EQ "SrsIntervalEnded")
{GeneralError}
#ENDIF
#IF((#Reason NE "MandatoryFieldLost")AND(#Reason NE "CancelFailed")AND(#Reason NE "NoErrorReturned")AND
(#Reason NE "SystemFailed")AND(#Reason NE "WrongParcelNumber")AND(#Reason NE "ParcelNumberAlreadyUsed")AND
(#Reason NE "TodayNotFriday")AND(#Reason NE "TimeNotPossible")AND(#Reason NE "ExpressParcelAfter15")AND
(#Reason NE "DateNotToday")AND(#Reason NE "ProductCodeNotValid4Country")AND(#Reason NE "CheckDigitError")AND
(#Reason NE "TransactionCannotBeStored")AND(#Reason NE "T205With2kgMore")AND(#Reason NE "ExtraWeight")AND
(#Reason NE "NeededTemplateFile")AND(#Reason NE "WrongFormat")AND(#Reason NE "TagNotAvailable")AND
(#Reason NE "NDIParcelNumbernotAvailable")AND(#Reason NE "CannotMakerouting")AND(#Reason NE "NeededTemplateFile")AND
(#Reason NE "InterfaceCannotOpened")AND(#Reason NE "CannotMakerouting")AND(#Reason NE "NeededTemplateFile")AND
(#Reason NE "WrongProductServiceCombination")AND(#Reason NE "RecordNotFound")AND(#Reason NE "GeneralSystemError")
)
#SET("FormErrorPrinted", 0)
#MENU("FormErrorMenu")#INCLUDE(#Template)#ENDMENU
#ENDIF
#IF(NOT #FormErrorPrinted)
{UnknownError} #Reason
#ENDIF
#ENDLOCAL
#ENDLOOP
#ELSE
{InputError}
{PleaseCorrectErrors}
#ENDIF
#ENDIF
#IF(NOT #DELETE AND #COUNT(#Pager.Items) != 0 AND #FUNCTION("MENU_COUNT", "BatchActions") > 0)
#SNIPPET("INC-BatchActions", "BatchActions", "BatchActions",1)
#ENDIF
#INCLUDE("INC-PagerHeader")
#IF(#ShippingFulfillmentType AND #ShippingFulfillmentType.AdminURL)