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

Question

Question

Can import agent overwrite electronic files specified in lst files?

asked on January 6, 2015

I have Import Agent monitoring a directory for .lst files. The .lst files list pdf files.

Right now, when import agent imports a pdf with same name as an electronic file that already exists, it copies the file in with a "(#)" appended to the end.

 

Is there a way to have import agent overwrite the original file, rather than keep both copies?

 

I tried using the setting in the import agent profile to overwrite electronic files with the same name but that did not work.

 

 

0 0

Answers

APPROVED ANSWER
replied on January 6, 2015

If you use the new XML list format, then you can control the action that occurs when there's a document name conflict.

I'd recommend reviewing the ImportEngine.xsd file located in the "List File Examples" folder in the Import Agent installation directory. After getting a handle on the XML schema definition, you can further use the example .xml files in that same folder to see how things work. For your scenario, see this example:

<?xml version="1.0" encoding="utf-8"?>
  <LF:importengine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://laserfiche.com/namespaces/importengine ImportEngine.xsd"
                   xmlns:LF="http://laserfiche.com/namespaces/importengine" version="1.0">
    
    <LF:toc on_document_conflict="overwrite" on_folder_conflict="unique">
      <LF:document name="Transportation" comment="" language="" template="">
        <LF:electronic_document content_type="application/pdf" extension="pdf">
          <LF:fileref ref="C:\Temp\sample.pdf" />
        </LF:electronic_document>
      </LF:document>
    </LF:toc>
  
</LF:importengine>

The thing to notice is the setting

on_document_conflict="overwrite"

 

0 0
SELECTED ANSWER
replied on January 7, 2015 Show version history

Correct. It's highly advised to switch to the new XML list format as it offers more capabilities.

0 0

Replies

replied on January 6, 2015

Do you get the same behavior when not using an LST file with Import Agent?

Do you get the same behavior on the client itself, independent of Import Agent, if you login with the account you use for the IA profile?

0 0
replied on January 6, 2015

I haven't tried using the import agent without the LST file since I need the LST file to set the fields for the template that I am using.

 

If I drag and drop the LST file into the client with the same user that I use with the Import Agent, I get the same behavior.

0 0
replied on January 6, 2015

First off, we need to know if it works as designed without the LST file with the correct settings in Import Agent. Please find out.

On the client side, did you configure Tools > Options > New Documents > Name conflicts in the client to Overwrite as well?

0 0
replied on January 6, 2015

The Import Agent will overwrite electronic files as indicated in the import profile if not using a LST file.

 

On the client side, even with the name conflict settings set to overwrite, a drag and drop of a LST file still results in multiple copies of the same file.

0 0
replied on January 7, 2015

Thanks, Alexander. I will check out the xml list format.

 

But just so I'm clear on this, controlling what happens on a filename conflict is something that cannot be controlled in the old lst format, correct?

0 0
SELECTED ANSWER
replied on January 7, 2015 Show version history

Correct. It's highly advised to switch to the new XML list format as it offers more capabilities.

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

Sign in to reply to this post.