Several people have encountered S/R errors similar to this:
Exception: The process cannot access the file 'C:\ProgramData\SIL\FieldWorks\Projects\Bolinao Flex\Linguistics\Lexicon\Lexicon_03.lexdb.ChorusNotes' because it is being used by another process.
It turns out that this failure was due to Windows Defender locking a file while scanning it after it is written. In the S/R process this scanning process blocks the ability to continue with the S/R process. The solution is to prevent Windows Defender from scanning the c:\ProgramData\SIL\FieldWorks\Projects directory. Similar problems can happen with normal file saves and other activities that Flex needs to do normal processing.
To block Windows Defender from interfering in Windows 10,
Open Windows Settings
Update & Security
Windows Security
Virus & threat protection (this line can be reached by clicking the search button and typing Virus)
Manage settings under Virus & Threat protection settings
Add or remove exclusions under Exclusions
Add an exclusion...Folder
Select c:\ProgramData\SIL\FieldWorks\Projects and click Yes to the Windows Security dialog.
There are other programs that can also interfere with Flex including other virus scanning software, and backup software. Hopefully these programs also provides similar options for blocking it from accessing the FieldWorks\Projects directory.
Note: If the locked file is Lexicon.fwstub.ChorusNotes, it's probably Flex that is blocking the process. See LT-20807 for a work-around for this until it gets fixed.
If you cannot find the program that is blocking Flex, you may be able to find it by using Microsoft Process Monitor. It can be downloaded from https://docs.microsoft.com/en-us/sysinternals/downloads/procmon. Click the "Download Process Monitor" link to download ProcessMonitor.zip. Unzip this file and execute Procmon.exe (for S/R issues) or Procmon64.exe (for other aspects of Flex). To see what is blocking the file above, Set a filter for "Path is C:\ProgramData\SIL\FieldWorks\Projects\Bolinao Flex\Linguistics\Lexicon\Lexicon_03.lexdb.ChorusNotes then Include", then click the Add button. Run the S/R process and then check the log in Process Monitor. You should see Process Names: FLExBridge.exe, hg.exe, ChorusMerge.exe but not MsMpEng.exe. This last one is Microsoft Malware Protection Engine which is part of Windows Defender.
Ken