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

Question

Question

Entry Lock when using Import Agent

asked on May 24, 2021 Show version history

Good day,

 

Has anyone experienced the following with Import Agent?

 

Event Viewer Text -

 

There was an error running the profile Invoice XML Files while importing the file "D:\FTP\SAPFTP\filename.xml". (The operation cannot complete because an object is locked. [9045])
 
Error Code: 9045
 
StackTrace:    at Laserfiche.RepositoryAccess.LaserficheReadStream..ctor(HttpUrl url, StreamRange byteRange, Session session)
   at Laserfiche.RepositoryAccess.LaserficheReadStream..ctor(HttpUrl url, Session session)
   at Laserfiche.RepositoryAccess.DocumentInfo.ReadEdoc(String& contentType)
   at Laserfiche.DocumentServices.TextExtractor.DownloadEDoc(DocumentInfo document)
   at Laserfiche.DocumentServices.TextExtractor.ExtractFrom(DocumentInfo document)
   at Laserfiche.ImportAgent.Service.ExecuteProfileElectFile.ImportEFileToElectFile(DocumentInfo EFile, LongFileInfo fi, Profile profile)
   at Laserfiche.ImportAgent.Service.ExecuteProfileElectFile.ImportEFile(ExecutionContext context, DocumentInfo LFDoc, LongFileInfo fi, Profile profile)
   at Laserfiche.ImportAgent.Service.ExecuteProfileElectFile.ImportFile(ExecutionContext context)
   at Laserfiche.ImportAgent.Service.ExecuteProfileFile.Execute(ExecutionContext context)

 

We receive the following error and the documents either end in an error folder and need to be reprocessed or we received an entry with no electronic data which causes the workflows to fail.

 

Are there some settings I can change?

 

Thanks

 

 

 

 

Error.PNG
Error.PNG (55.96 KB)
0 0

Replies

replied on May 24, 2021

9045 errors have an error handler, so Workflow will try again in 5 minutes to see if the lock was released.

It looks like your workflow is set to start on document creation and possibly Import Agent is letting go of the initial lock before it's done with it. Try setting Workflow to start on document changes when pages are added if the presence of  text is important for the rest of the actions.

0 0
replied on May 25, 2021

Hi Miruna,

 

Thank you , this error is not on Workflow though and I understand it will try again. 

 

What could be the problem with the documents that don't even make it to the repository? They are put into a Error folder by Import Agent and I need to transfer them back into the processing folder again.

 

Regards

Ian 

0 0
replied on May 25, 2021

It's hard to say without looking at Import Agent's logs. You might want to open a support case so we can take a closer look.

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

Sign in to reply to this post.