Kbase P145121: Cannot call fetchFirst as a dynamic function.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  22/04/2009 |
|
Status: Unverified
SYMPTOM(s):
Cannot call fetchFirst as a dynamic function.
Cannot run code of the form:
DYNAMIC-FUNCTION('FetchFirst':U IN h_datasource).
User-defined function '<function>' invoked dynamically but could not be found. (5639)
(User-defined function 'fetchFirst' invoked dynamically but could not be found. (5639)
FACT(s) (Environment):
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x
CAUSE:
fetchFirst is a procedure, not a function. Therefore, it cannot be invoked using DYNAMIC-FUNCTION(). Since there is no fetchFirst function in the ADM, DYNAMIC-FUNCTION looks for a user-defined function by that name. If none is found, error 5639 is generated.
FIX:
Run fetchFirst using syntax as in the following example:
RUN fetchFirst IN h_datasource.