Consultor Eletrônico



Kbase P184891: Error 13682 is generated when invoking INTEGER(SUBSTRING(.......))
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/29/2011
Status: Unverified

SYMPTOM(s):

ABL code is assigning INTEGER(SUBSTRING(SomeField,StartPosition,Length)) to an INT64 variable.

Error 13682 is generated at runtime.

Value <value> too large to fit in INTEGER datatype. (13682)

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.1x
OpenEdge 10.2x

CAUSE:

The result of the SUBSTRING function that is passed to the INTEGER function exceeds the 2GB value for a 32-Bit integer so error 13682 is generated.

FIX:

Modify the code to use the INT64 function as shown below:

ASSIGN SomeInt64Variable = INT64(SUBSTRING(SomeField,StartPosition,Length)).