Page 1 of 1
PowerBuider target locked
Posted: Thu Feb 15, 2024 4:21 pm
by awheeler
I am using Agent Git with PowerBuilder 12 and the target file has recently become locked. I cannot check it out again to add new pbls to the project. I know I checked the target out several months ago and checked it back in. Now I can no longer check the target out.
Re: PowerBuider target locked
Posted: Fri Feb 16, 2024 1:39 am
by jussij
You should be able to fix this by deleting the Agent Git lock file.
So could you try the following:
- Backup your current project folder just in case something goes wrong.
- Make sure PowerBuilder is not running.
- Find the .git folder found in the root of the project folder. Note: This is a hidden folder so you may need to adjust Windows Explorer so that it displays this folder.
- Inside that .git folder find and delete the following Agent Git lock file:
- Start Power Builder and all Agent Git locks will now be gone.
If the checkout still fails could you then do the following:
- Make sure PowerBuilder is not running.
- Open the Agent Git configuration utility and turn on the debug option.
- Use the View Debug Log File button to open the log file, taking note of its location (that will be shown on the last line of the log file).
- Trim the log file down to nothing.
- Start Power Builder and try to do the check-out.
- Go back to the log file and send it though as an e-mail attachment, or alternatively add it as a file attachment in reply to this post.
Cheers Jussi
Re: PowerBuider target locked
Posted: Fri Feb 16, 2024 7:10 pm
by awheeler
Deleting the database file did not help. I have created the debug log file. What email do I send the log file to?
Re: PowerBuider target locked
Posted: Sat Feb 17, 2024 3:20 am
by jussij
Inside the jussij user profile found at the top of this post contains a send e-mail option. Just click on the jussij link.
You could also try the following:
- Again make sure you backup the project folder just in case.
- If not already installed, install Tortoise Git: https://tortoisegit.net/
- With PowerBuilder not running, go to the project folder and do a Commit as shown in the image below:

- commit-folder.png (43.73 KiB) Viewed 11187 times
In the image above, Tortoise Git is being used to commit (i.e. check in) all changes made in the GitTest folder. In your case this will be the PowerBuilder project folder.
- Now start PowerBuilder and do an undo checkout inside of the IDE. But because all changes from this folder were committed in the step above, this undo checkout should mean not changes will be lost.
IMPORTANT: Obviously step 4 has the potential to cause the loss of changes if things are not done correctly or if something unexpected happens, hence the need for the good backup.
Even if this latest suggestion works, could you still send through the log file as it would be interesting to learn why the other suggestion failed to work and what is actually going wrong.
Jussi
Re: PowerBuider target locked
Posted: Tue Feb 20, 2024 9:43 pm
by awheeler
Hi Jussi,
I see no option for "send email" in your profile. Is there a setting I need to add to my profile to see email addresses?
I do use Tortoise Git and I attempted the commit as suggested but, as I have no objects checked out, I get the message "No files were changed or added since the last commit".
I did try modifying the target file using Notepad and was able to add two pbls to the library. I went in to PowerBuilder and they were there along with the objects I had created in these pbls. Is it possible to now add these pbs to source and then check in them into the repo using Agent Git, then do as you suggest and commit the target file in Tortoise Git?
Your thoughts?
Re: PowerBuider target locked
Posted: Tue Feb 20, 2024 10:14 pm
by jussij
Your thoughts?
It is very difficult to tell what is going wrong as I have so little information to go on.
I have sent you an e-mail. Please send though the log file using that e-mail address.
Is it possible to now add these pbs to source and then check in them into the repo using Agent Git, then do as you suggest and commit the target file in Tortoise Git?
The Agent Git check-in action is exactly the same as the commit found in Tortoise Git.
You can see this by doing the following:
- Check out a file in PowerBuilder.
- Make a change in PowerBuilder and save the changes.
- Using the Tortoise Git Diff menu to see these differences in that file:

- git-diff.png (204.64 KiB) Viewed 11168 times
- Check the file in using PowerBuilder and now there will be no more differences.
Cheers Jussi
Re: PowerBuider target locked
Posted: Wed Feb 21, 2024 12:40 pm
by jussij
Unfortunately the log file attachment that was sent through did not highlight any errors in the Agent Git plug-in, instead it appeared to be working as expected.
For an understanding of how the Agent Git MS-SCCI plug-in works consider the following description:
viewtopic.php?t=8368
Jussi