Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6064917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:19:56+00:00 2026-05-23T09:19:56+00:00

OrcaScript is Handy I’ve used PowerBuilder OrcaScript before to automate a build PC’s connecting

  • 0

OrcaScript is Handy

I’ve used PowerBuilder OrcaScript before to automate a build PC’s connecting to source control, getting the latest copy of the application objects, and then building the application. But that was on a project where the entire application was at our disposal and we owned all the code, and OrcaScript had no problem building the entire app.

But now I only need to get latest on a subset of PBLs

I’m now working on a project where we are customizing an existing third-party application. So I need to be able to reference all the proprietary third-party PBDs but only refresh the PBLs from source that contain our custom code that integrates into the vendor app’s framework. We will only move the updated custom PBLs to the application directory when the refresh is complete.

I’ve been experimenting quite a bit but haven’t been able to successfully refresh only the subset of PBLs that I want.

First, is this possible to do in OrcaScript?

Second, if it is possible, what am I missing? I have successfully:

  • set the properties and connected to source control
  • performed a “get latest” on the target, which seems to cause OrcaScript to create the needed empty PBLs
  • excluded the proprietary third-party PBDs from the lib list

The problem is on the scc refresh target command. Logs show the process failing due to a write access issue, but the problem object or library is not specified. I have tried removing the read-only status from the objects in the list but this doesn’t seem to be the issue.

I’ve experimented with various refresh type and build options but can’t seem to get past the refresh.

— ADDENDUM —

Orcascript:

start session

scc get connect properties "Y:\Project\Release\PBWorkspace.pbw"
scc connect
scc set target "Y:\Project\Release\Starboard.pbt" "outofdate exclude_checkout"

scc get latest version "Y:\Project\Release\Starboard.pbt"
scc exclude liblist “Many proprietary PBDs excluded here”

scc refresh target "migrate"
scc close

;File copies to happen here

end session

Running orcascr9.exe ultimately yields this error at the refresh:
Orca error in ‘scc refresh target’. Result Code -22.

The log is below.

6/16/2011   17:15 Source Management Initialization...
        Scc Provider: PushOk SVNSCC
Connection to source control established

PBORCA_SccSetTarget: y:\project\release\Starboard.pbt

Target settings: REFRESH OUT OF DATE | EXCLUDE CHECKOUT 

PushOk SVNSCC Status: Fetching file list for: Y:/Project/Release/
  App Name: Starboard    App Lib: y:\Files\StarboardPB\application.pbl
  Library List: Many PBLs and PBDs identified

Successfully created library: c:\projects\Starboard scripts\powerbuilderobjects\custom.pbl
Successfully created library: c:\projects\Starboard scripts\powerbuilderobjects\custom_maps.pbl

PBORCA_SccGetLatestVer
PBORCA_SccExcludeLibraryList:
        Much excluding going on here

PBORCA_SccRefreshTarget. Migrate and Full Rebuild
PushOk SVNSCC Status: Fetching file list for: C:/Projects/Starboard Scripts/PowerBuilderObjects

PushOk SVNSCC Status: Fetching status for : C:/Projects/Starboard Scripts/PowerBuilderObjects

If I delete the PBLs out of the directory, I get the following errors upon refresh

DIFF2002 SccDiff error.  Unable to read PBL source for  c:\projects\Starboard scripts\powerbuilderobjects\custom.pbl(d_nautical.srd)

Calling cm_rebuild_application(CM_REBUILD_MIGRATE).
(0002): Error   C0193: One or more of the files in your library list could not be opened for write.

Errors encountered during import/compile.  Check SMS log.
PBORCA_SccClose
6/16/2011   17:16 Source control terminated

If I leave the PBLs in place, I get this

Calling cm_rebuild_application(CM_REBUILD_MIGRATE).
(0001): Error       C0193: One or more of the files in your library list could not be opened for write.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:19:57+00:00Added an answer on May 23, 2026 at 9:19 am

    Thanks Hugh Brackett, for trying to help me out. I was unable to get past the read errors when using native OrcaScript. So unfortunately I don’t have an actual answer for the question as written, except to say that in my experience, that “No, PB 9 does not support refreshing from source control a subset of PBLs when PBDs are part of the library list.”

    I do have a work around, albeit one that is not cheap. I have heard nothing but good things about PowerGen, a third-party tool for PowerBuilder builds and deployment. I tried out the trial app, and I must say it is outstanding. It seems to be able to do anything you need.

    I tested a build automation script. PowerGen notified me it couldn’t open the PBD files but continued to refresh the custom PBL objects I wanted loaded. The problem is solved, though it cost some cash to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there an easy way to get any more control over the py2app traceback
I am developing an application using titanium mobile. On the simulator, the app works
I'm writing a standard Cocoa application, and I've just started implementing AppleScript support for
I have an application that can import an XML file through this terminal command
So I have an application 'myApp', and I have a preference to load 'myApp'
I have a Mono application that should not show on the dock, but will
I am running the following line within a shell script: osascript -e 'tell application
Can somebody please explain what is wrong in the below applescript: tell the application
I need a way to add an application to the Login Items from a
I've looked at the queries on SO that pertain to similar errors - but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.