Incompatible datatypes found during runtime conversion. (5729)

jmac13

Member
Hi all im using open edge 10.2b..

Anyone seen this error before? im trying to track down whats causing this

Incompatible datatypes found during runtime conversion. (5729)
Use the PROGRESS functions: STRING, INTEGER, DECIMAL, DATE etc to do explicit conversion rather than allowing a runtime conversion.
 
one thing you should look out is dynamic buffer/query operations:
- dynamic query: query-prepare:'for each table where field = <some value>')
- buffer assign: [buffer-field]:buffer-value = <some value>

used in dynamic query/assign <some value> can always be quoted (as string) and run-time conversion take place, if the value does not math the field data type you get that error
 
found it! it was when the code was copying a array like this (chrPassCopy = s_h_pass) both arrays of 20 but then we the code reassigned s_h_pass it throw an error (s_h_pass = chrPassCopy). so I just did a loop instead and that seem to fix the error

Code:
 do intLoop = 1 to extent(s_h_pass):
   chrPassCopy[intLoop] =   s_h_pass[intLoop]. 
 end.

/*then when i want s_h_pass back i do the following*/

 do intLoop = 1 to extent(chrPassCopy):
   s_h_pass[intLoop] =   chrPassCopy[intLoop]. 
 end.
 
Back
Top