Consultor Eletrônico



Kbase P56628: Getting intermittent error 5890 with error code: 0x80020009
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/15/2010
Status: Unverified

SYMPTOM(s):

Getting intermittent error 5890 with error code: 0x80020009

Error occurred while accessing component property/method: <property or method name>. <COM message> Error code: <Program name> (5890)

FACT(s) (Environment):

NO-ERROR used when calling an OCX method
Windows
Progress 9.x
OpenEdge 10.x

CAUSE:

The OCX method is trying to ftp a file. When this file is not found the OCX method causes a STOP condition and this will display the error and stop program flow, even if NO-ERROR is used.

FIX:

The original call of the OCX looked like this:

mchFtp:GetFile NO-ERROR.

This additional code will allow program flow to continue and suppress the error message:

DO ON STOP UNDO, NEXT:
OUTPUT TO "TransferAbort.log".
mchFtp:GetFile NO-ERROR.
OUTPUT CLOSE.
END.
IF mchFtp:LastError <> 0 THEN DO:

The "OUTPUT TO" is necessary so the error message won't be displayed.