How to solve the crash when executing the ORCA script

Symptom

When users execute the ORCA script, it crashes.

Environment 

PowerBuilder 2017 or later

Cause

This is a Sybase known issue. It crashes in some special applications.

Solution

Solution #1: Perform scc refresh target incremental once before scc refresh target "3pass" as follows:

start session
set debug true
scc set connect property logfile "CreatePBLs.log"
scc connect offline
scc set target "dfscl_ext\pbl\dfs.pbt" importonly
scc refresh target incremental
scc refresh target "3pass"
scc close
end session

Solution #2: Replace ORCA with the new feature PBAutoBuild added in PowerBuilder 2021, which is more stable and easier to use.