1. John Strano
  2. PowerBuilder
  3. Friday, 25 March 2022 16:16 PM UTC

Using Git hosted by DevOps.

PowerBuilder 2021

There are no *.PBG files present, of course.

From the command line...

orcascr210.exe XxXxxx21_Build_Script_PRODUCTION_v04.orca

...there are no explicit errors displayed in the console.

However, the output log indicates that both the Incremental Rebuild and the 3Pass Rebuild have failed to refresh the PBLs.

Why is orcascr210.exe expecting there to be *.PBG files to process?

localprojpath is set to the parent folder of ws_objects.

Output log excerpt...

PBORCA_SccRefreshTarget. Incremental Rebuild
Unable to process map file: l:\pb21_apps\oncoll21_cicd\oncoll21_cicd_production\_coll_app.pbg
l:\pb21_apps\oncoll21_cicd\oncoll21_cicd_production\_coll_app.pbl cannot be refreshed.
Unable to process map file: l:\pb21_apps\oncoll21_cicd\oncoll21_cicd_production\coll_main.pbg
l:\pb21_apps\oncoll21_cicd\oncoll21_cicd_production\coll_main.pbl cannot be refreshed.
Unable to process map file: l:\pb21_apps\oncoll21_cicd\oncoll21_cicd_production\coll_common.pbg
l:\pb21_apps\oncoll21_cicd\oncoll21_cicd_production\coll_common.pbl cannot be refreshed.

Other threads here on Q&A on "Unable to process map file" seem relegated to PowerBuilder 2019 R2 and earlier.

Please advise. Thank you.

Here is the scope of the *.ORCA file...

;//////////// * XxXxxx21_Build_Script_PRODUCTION_vXX.orca *////////////

start session
scc set connect property localprojpath "'L:\PB21_Apps\XxXxxx21_CICD\XxXxxx21_CICD_Production'"
scc set connect property logfile "L:\PB21_Apps\XxXxx21_CICD\XxXxxx21_Batch_Scripts\XxXxxx21_CICD_Production_scc.log"
scc set connect property logappend false
scc set connect property deletetempfiles "true"

scc connect offline

;scc set target "L:\PB21_Apps\XxXxxx21_CICD\XxXxxx21_CICD_Production\XxXxxx_prod.pbt" "refresh_all importonly"
scc set target "L:\PB21_Apps\XxXxxx21_CICD\XxXxxx21_CICD_Production\XxXxxx_prod.pbt" "outofdate importonly"

scc refresh target "incremental"
scc refresh target "3pass"
;scc refresh target "full"

scc close

end session

 

Accepted Answer
John Strano Accepted Answer Pending Moderation
  1. Friday, 25 March 2022 19:37 PM UTC
  2. PowerBuilder
  3. # Permalink

The issue was the syntax of the localprojpath connect property value being set.

(Hats off to my Intertech Consulting colleague, Miller Rhodes, for spotting this.)

scc set connect property localprojpath "'L:\PB21_Apps\XxXxxx21_CICD\XxXxxx21_CICD_Production'"

In a sandbox instance of DevOps...

scc set connect property localprojpath "L:\PB21_Apps\XxXxxx21_CICD\XxXxxx21_CICD_Production"

...or...

scc set connect property localprojpath 'L:\PB21_Apps\XxXxxx21_CICD\XxXxxx21_CICD_Production'

 ...was returning a syntax-related error. That error was no longer being returned if we nested the string value of the path in single and double quotes as displayed above in this post. (Need to go back and see if the sandbox locale path had spaces embedded.)

Apparently orcascr210.exe was happy enough with this, in that subsequently it returned the valid library list of the target in the displays of both the console and in the output log file.

Once the nested quotes were removed, the refresh succeeded and in the console (not the output log file) it displayed...

...

scc close

Removed the mapped source files successfully.

End session

...!!!

Quite odd. Live and learn.

 

Comment
  1. Armeen Mazda @Appeon
  2. Friday, 25 March 2022 22:00 PM UTC
Thanks for sharing the solution!
  1. Helpful
There are no comments made yet.
John Strano Accepted Answer Pending Moderation
  1. Friday, 25 March 2022 19:46 PM UTC
  2. PowerBuilder
  3. # 1

We will be utilizing PBAutoBuild for deploying PowerClient projects for this application development project,

but for now we prefer the division of labor that has orcascript performing the DevOps/Git interaction.

We perceive this as more granular and "modularizing" or granularity of tasking.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 25 March 2022 18:51 PM UTC
  2. PowerBuilder
  3. # 2

Hi John;

   Have you tried the new PBAutoBuild utility instead as it can do both the ORCAScript & PBC functions "all-in-one"?

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.