Powerbuilder Application Execution Error R0035 -
This cause is more common in development. The R0035 error can appear when the way PowerBuilder calls an external function does not match the function's expected parameters. This can happen when calling functions in standard DLLs or COM objects.
The application is attempting to execute a method on an external server (like Excel, Word, or a custom OCX) that is either not initialized, not registered, or has crashed. 🔍 Common Root Causes
: The required library (DLL, OCX, or VBX) is not registered on the system or is missing from the application path. powerbuilder application execution error r0035
: The function name is misspelled, case-mismatched, or the parameters provided do not match what the external object expects. Object State Issues
The solution is to extend the timeout period using the SetAutomationTimeout PowerScript function on your OLEObject. Here is an example of setting a timeout to 15 minutes (900,000 milliseconds) for an Excel object: This cause is more common in development
If you want to avoid runtime PDB lookups entirely, compile all objects into the EXE using a PBR file. This increases EXE size but eliminates R0035.
Wrap external calls in TRY-CATCH to prevent application crashes . The application is attempting to execute a method
Perform a on the workspace to refresh all object paths. Re-generate the executable and accompanying PBD files. Step 5: Run as Administrator / Exclude from Antivirus Rule out security blocks by testing permissions. Right-click the .exe file and select Run as administrator .
If you are upgrading an older PowerBuilder application (e.g., from version 8.5 to 10.5+), older OCX controls (like old Crystal Reports RDC) may not work on modern Windows 10/11 environments, as indicated in SAP support cases . You may need to upgrade the third-party control or re-engineer the code to use modern API calls. Summary Checklist for Troubleshooting R0035 Run regsvr32 on all required .ocx and .dll files. Verify 32-bit components are registered via SysWOW64 .
Troubleshooting PowerBuilder Application Execution Error R0035