Consultor Eletrônico



Kbase P11913: Error 51 with Dynamic-Function in FIND statement or CAN-FIND function
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   17/03/2009
Status: Verified

SYMPTOM(s):

Error 51 with Dynamic-Function in FIND statement or CAN-FIND function

SYSTEM ERROR: sizditm -- invalid type. (51)

Running the following pseudo code results in error 51:

if can-find(first customer where custnum = dynamic-function("my_function_to_get_customer_based_on_custname":u, "CustomerName":u)).

FACT(s) (Environment):

Progress 9.1B
Progress 9.1C
All Supported Operating Systems

CAUSE:

Bug# OE00063511

FIX:

Upgrade to Progress 9.1D or later release

Workaround:

First assign the dynamic-function's return value to a variable. For example

def var x as char.
x = dynamic-function("my_function_to_get_customer_based_on_custname":u, "CustomerName":u)).
if can-find(first customer where custnum = x.