Hello,
This customer experiences this error fairly often when using Import Agent to bring documents into Laserfiche. Full error message below:
There was an error running the profile Contracts while importing the file "F:\Scans\Contract\Untitled_06102019_024948.tif.lck". (The process cannot access the file because it is being used by another process : F:\Scans\Contract\Untitled_06102019_024948.tif.lck)
Error Code:
StackTrace: at Laserfiche.ImportAgent.Library.Helpers.GetLastErrorAndThrowIfFailed(String extra)
at Laserfiche.ImportAgent.Library.Helpers.CreateFile(String path, FileAccess access, FileShare share, FileMode mode, UInt32 dwFlagsAndAttributes)
at Laserfiche.ImportAgent.Library.LongFileInfo.Open(FileMode mode, FileAccess access)
at Laserfiche.ImportAgent.Service.ExecuteProfileFile.IsLocked(LongFileInfo fi)
at Laserfiche.ImportAgent.Service.ExecuteProfileFile.Execute(ExecutionContext context
This doesn't happen every time. We've noticed that the documents in question are .LCK files, although they're scanned to the monitored folder as .TIF files. My first guess is that slow network speeds cause the image to take a while to be fully scanned into the monitored folder, but Import Agent is already trying to grab it? I will also work with their IT to make sure their AV isn't scanning the directory we're using for Import Agent scans.
Has anyone else ran into something like this?