1. Satish Pawashe
  2. PowerBuilder
  3. Thursday, 10 September 2020 18:37 PM UTC

Below is the script I am using (in a offline mode). I have all the source filse in the 'ws_object' folder correctly and I can see it IDE too. But when I close the IDE and run the following script the PBL gets corrupted and not objects are imported into the PBLs. I checked the .PBG file and it is in sysn with what is under 'ws_objects' folder. Any help is greatly appropriated. (FYI..The code has been migrated to PB-19 from PB11)

 

 

start session
scc set connect property logfile ".\bin\svnorca.log"
scc set connect property logappend false
scc connect offline
scc set target ".\ardd.pbt" "refresh_all importonly"
scc refresh target migrate
;scc refresh target incremental
scc refresh target "3pass"
build library ".\logon.pbl" "" pbd
build library ".\lnlsman.pbl" "" pbd
file copy ".\lnlsman.pbd" ".\bin\lnlsman.pbd"
file delete ".\lnlsman.pbd"
end session

 

Thanks,

 

 

Satish

Benjamin Gaesslein Accepted Answer Pending Moderation
  1. Thursday, 17 September 2020 10:20 AM UTC
  2. PowerBuilder
  3. # 1

The existence of a ws_objects folder suggests that you are using the built-in SVN/GIT solution. Powerbuilder does not generate pbg files at all in this case, the libraries are built just from the source files.

You can try following the suggestions in this article:

https://docs.appeon.com/pb2019/pbug/apbs04.html

Comment
There are no comments made yet.
Satish Pawashe Accepted Answer Pending Moderation
  1. Thursday, 10 September 2020 22:53 PM UTC
  2. PowerBuilder
  3. # 2

OK. I recovered the .PBG files from my backup and ran the same scripts. But got the same issue (that is pbl generated does not have the objects and is corrupt. However the log says files have been successfully created.  

 

Successfully created library: c:\users\spawas\legacy-apparel-powerbuilder\logon.pbl

Comment
There are no comments made yet.
Satish Pawashe Accepted Answer Pending Moderation
  1. Thursday, 10 September 2020 21:39 PM UTC
  2. PowerBuilder
  3. # 3

I just turned on the debug and this is what I see in the log files...

"Unable to process map file: c:\users\spawas\legacy-apparel-powerbuilder\logon.pbg"

I am not sure how my all .PBG files deleted. I don't see any of my .PBG files. How can I recreate them?

 

 

 

Comment
  1. Chris Pollach @Appeon
  2. Friday, 11 September 2020 13:40 PM UTC
PBG files are built & maintained by the PB IDE. They should therefore be located in your PB IDE's current workspace folder. They should also be uploaded to the SCM repository for downstream processing by the ORCAScript utility.
  1. Helpful
  1. Satish Pawashe
  2. Friday, 11 September 2020 16:39 PM UTC
Thanks you so much. But when I tired to rebuild the project they did not get re-created? What is the process in the IDE that creates PBG files?
  1. Helpful
  1. Chris Pollach @Appeon
  2. Friday, 11 September 2020 17:54 PM UTC
They get built when you connect to a SCM and then add the PB App workspace contents to the SCM's repository. You might have to redo that step to get these refreshed.

You can also edit any existing PBG files as well manually to update them if required (ie: restored file that are out-of-sync).

FYI: https://docs.appeon.com/pb2019/pbug/ch03s04.html#ug97604

https://community.appeon.com/index.php/qna/q-a/how-to-regenerate-pbg-file

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 10 September 2020 18:57 PM UTC
  2. PowerBuilder
  3. # 4

Hi Satish;

  Can you please try adding (instead of ";scc refresh target incremental"), as follows:

scc refresh target "full"

Regards ... Chris

Comment
  1. Satish Pawashe
  2. Thursday, 10 September 2020 20:58 PM UTC
Same issue.

- I closed the IDE

- Updated the script with -> scc refresh target full

- deleted the previous PBL's

- ran the script

- same issue. Got the new generated PBL's and they are with only 5KB with no objects in them

  1. Helpful
  1. Satish Pawashe
  2. Friday, 11 September 2020 16:46 PM UTC
Any help is greatly appreciated, Still have the same issue after modifying the script to include your suggestions
  1. Helpful
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.