PowerBuilder · Exception

OLERuntimeError System Exception

What does OLERuntimeError System Exception mean in PowerBuilder?

Thrown when an OLE automation call fails and the failure is not already handled by an ocx_error event, an ExternalException event, or a scripted Error event on the OLE control. It carries OLE-specific properties (Description, HelpFile, HelpContext) in addition to the standard RuntimeError information.

OLERuntimeError System ExceptionPowerBuilder Classic · Appeon PowerBuilder

Condition

Thrown when an OLE automation call fails and the failure is not already handled by an ocx_error event, an ExternalException event, or a scripted Error event on the OLE control. It carries OLE-specific properties (Description, HelpFile, HelpContext) in addition to the standard RuntimeError information.

Fix

Catch OLERuntimeError around OLE automation blocks (Excel/Word automation, custom ActiveX calls) and log the Description and HelpFile/HelpContext values, since the generic Text property alone is often too vague to diagnose which automation call failed. Confirm the OLE server is registered and version-matched on the failing machine before assuming a code defect.

Related exception