Skip to Content

PB 10.5.1 + SourceControl: PBG Check In Fails while AddToSourceControl at Target

Dec 16, 2016 at 02:52 PM


avatar image


we are using PowerBuilder 10.5.1 with Microsoft Visual SourceSafe.
Everything works fine when we Add/Remove Objects to/from to SourceControl.

BUT do we add all new Objects by a Rightclick at the main target with "Add To Source Control", so the following error occured:
---------- Source Control
Adding selected items to source control...
Microsoft Visual SourceSafe Info: A writable copy of..*.pbg already exists
SccAdd() failed because file ...*.pbg already exists
Error checking in .PBG file. Verify that new entries are correct and check in .PBG file manually.

At least

- the new objects will be listed in Microsoft Visual SourceSafe, but
- the PBG is already checked-out (the automatic check-in of the PBG doenst work)...

If we start a GetLatestVersion at another Client, he doesnt receive the new objects.

Probally by the checked-out PBG-File.

Can anyone help us?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

David Peace Dec 23, 2016 at 10:23 AM


We used PB10 and VSS for many years quite successfully. My guess is that you have a copy of the PBG on disk and or the PBG does not match the library contents in source control.

I suggest the following......

1. Edit the PBG to match the contents of the library, to do this checkout in VSS and edit using a text editor.

2. Check the PBG back in and delete any files left on disk.

Then try adding a new object to a library and adding it to source control. Check that the PBG has been updated.

Then got to another PC and get latest version, does the new object appear.

Hope that helps.



10 |10000 characters needed characters left characters exceeded
Roland Smith Dec 23, 2016 at 07:15 PM

I think that 'A writable copy' means that there is a copy of the .pbg file on disk with the read-only flag turned off. You could try setting the read-only flag to be on or delete the .pbg which will force the IDE to get the latest version.

10 |10000 characters needed characters left characters exceeded
Frank Herrlich Dec 27, 2016 at 07:26 AM

thank you very much for your ideas, but nothing works. same problem

10 |10000 characters needed characters left characters exceeded
Paul Feighan Jan 16, 2017 at 01:35 PM

Does anyone have the old PB 10.5.1/2 EBF's.. I have a valid copy of PB 10.5 but my machine crashed and I have to rebuild from the CD's? Thanks !

10 |10000 characters needed characters left characters exceeded