System Error - “A file appears to be locked”


Problem

How to troubleshoot the system error “A file appears to be locked”?

Solution

This issue usually occurs when the input or temporary files are being restricted by Windows, antivirus software, or network permissions. As a result, SACS cannot access or overwrite files required for the analysis.

The error is typically due to one of the following:

Please try the following steps:

1. Check and remove Read-Only Attribute - This ensures SACS can freely read and write to the necessary files during the run. 

2. Restart to Release File Locks - Sometimes a background process (PostVue or an incomplete analysis) may continue to hold the files. 

3. Use a Local Working Directory - Running models from network or shared drives can cause file access conflicts. 

4. Temporarily Disable Antivirus Scan, as some antivirus or endpoint security tools can lock temporary SACS files (.tmp) during the run.


After performing the above checks, rerun the analysis. If the run completes successfully without the “file locked” message, the issue has been resolved.


If the issue persists:

  1. Ensure you have write permissions to the working directory.
  2. Check that the model files are not open in PostVue or any editor.
  3. For multi-user environments, confirm no other user or process is accessing the same model files.