You are viewing limited content. For full access, please sign in.

Question

Question

"The process cannot access the file because it is being used by another process" error when importing documents using Import Agent

asked on June 11, 2019

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?
 

0 0

Replies

replied on June 11, 2019

What is the version of your Laserfiche Server? Does creation of these documents trigger workflows?

1 0
replied on June 11, 2019

Hi Miruna,

Laserfiche server version is 10.4.0.181. Creation of these documents in Laserfiche does not trigger any workflows. Import Agent version is 10.3.1.474.

I wasn't very clear about this in my original post, but there aren't any issues with the documents if they do make it into Laserfiche via Import Agent. The problem documents end up in the IAError folder in the Import Agent directory, and some of them have the .LCK extension.

0 0
replied on February 19, 2020

Hi Jacob - Did you ever figure out the solution to this issue?

0 0
replied on February 19, 2020

Hi Eric,

I don't remember specifically what the solution was here, but we've fixed similar issues to this by increasing the amount of time that passes before Import Agent will attempt to bring a document into Laserfiche. You can do this by opening Import Agent Config, choosing Profile in the menu bar at the top, and clicking Options. Then head to the Advanced tab and change the time under New Files. This may have been the fix for us - I just don't recall.

2 1
replied on June 11, 2019

We also have errors that say the same thing, but the documents don't have the .lck extension.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.