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

Question

Question

Can Import Agent import a file from an XML and leave the source documents alone?

asked on November 20, 2018

Hi Everyone,

 

I am looking to implement a solution where a xml file with a list of documents to import to Laserfiche is generated.

 

The idea is to generate a list of files to import using another system and to place the xml list in a monitored folder for Laserfiche Import Agent to process.

 

After testing, Import Agent is importing a set of test documents with metadata into the repository, but not only is it moving the xml list file to a processed folder when complete, it is also moving all the files it imported too!

I want to move / delete the xml list but leave the actual import files where they are after import.

Is there a flag in the xml I can set so that Import Agent will import using the xml list, but leave the actual imported files in their original location instead of deleting or moving them?

 

Thanks!

0 0

Answer

SELECTED ANSWER
replied on November 20, 2018 Show version history

As far as I know, the IA XML does not have options for leaving the target file in place.

The way I would look at it is that even though the XML is in your monitored folder, it is not really the import; it is simply a reference for where to retrieve the actual import, what data to apply, etc. (i.e., a packing slip at a shipping center).

If you need to leave the files in place, you would either need to do something custom with the SDK, or the easier solution would be to just copy the files to a different location and use the path for the duplicates when you generate your XML.

0 0

Replies

replied on November 20, 2018 Show version history

Edit: I misunderstand the scope of the question.

 

Import agent monitors a folder and either imports the files or ignores them based on a filter.  That's pretty much the entire feature set.

What you're describing doesn't exist as an out of the box solution.  That is going to require some custom development in the SDK.

0 0
replied on November 20, 2018

Hi Erik,

 

Thanks for taking the time to answer. Forgive me but I want to make sure the use case is clear. I am using the .xml list file method to import files into Laserfiche, not the normal import documents directly from monitored folder configuration.

 

Using this method the only file that is ever entered in the monitored folder is a .xml file.

 

In the file is a list of documents and associated metadata and the locations where the documents can be found on the network.

 

You are absolutely right that any document in the monitored folder should be either moved or deleted after import and that is exactly what I want to happen to the .xml file in the monitored folder.

 

But I need the documents listed in the .xml to be imported and then left where they were originally stored on the network. I was hoping there was a flag that could be set in the .xml file that would achieve this outcome.

 

Can you verify that there is no method to modify the .xml list file to leave the documents in their original locations?

 

Thanks again,

Adam

0 0
SELECTED ANSWER
replied on November 20, 2018 Show version history

As far as I know, the IA XML does not have options for leaving the target file in place.

The way I would look at it is that even though the XML is in your monitored folder, it is not really the import; it is simply a reference for where to retrieve the actual import, what data to apply, etc. (i.e., a packing slip at a shipping center).

If you need to leave the files in place, you would either need to do something custom with the SDK, or the easier solution would be to just copy the files to a different location and use the path for the duplicates when you generate your XML.

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

Sign in to reply to this post.