How to manually unlock a code file

When you open a code file in the Sage X3 People internal editor (function ADOTRT), Sage X3 people locks the file to prevent simultaneous modification. When you close the file, the lock is released. But if you experience an unexpected exit from the system while you have a file opened in the editor (for example, due to power failure), the file lock might not be released. In this case, when you open the file again, you will see a warning message and the file will be in read-only mode.

In such situations, to release the lock manually you have to delete a temporary file that X3 People creates to mark the code file as locked. This temporary file has the same name as your code file and an extension of ‘LCKsrc’. For example, if you open the SPEPOH code file, X3People will create a temporary file called ‘SPEPOH.LCKsrc’.

The temporary file is created in the same directory as its corresponding code file. This is usually the TRT subdirectory of your X3 People folder. To release the lock, all you have to do is delete the temporary file (be careful not to delete the .src and .adx files of the same name!)

Leave a Reply

Your email address will not be published. Required fields are marked *