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

Question

Question

Import Agent to leave file in its monitored location?

asked on May 29, 2017

Hi All,

 

Was wondering if this is possible? 

We would like to retrieve files within a Folder using Import Agent daily at 8pm. These are Shared Excel Documents that users use through out the day. Reason for this is to make sure a copy is saved within Laserfiche and under version control. 

 

From looking within Import Agent, the Post-Processing only gives you the option to delete the file or move it? 

My question is, if i am to move it back to its directory, would that cause an endless loop? even if i have specified for the Import Agent service to run Daily between 8-10pm? 

 

Thank you

Ziad

0 0

Answer

SELECTED ANSWER
replied on June 1, 2017

I have an alternate solution for you outside of Laserfiche.

Put the Excel files in a folder that your users work from that is NOT monitored by Import Agent. Then create a new folder (not shared, so your users cannot touch it) that Import Agent can monitor.

Then set up a Scheduled Task in windows to run the copy command line program to copy the contents of the folder of those Excel files being used by your users to the folder that Import Agent Monitors. You can do things like force the copy if it complains about the files being open.

 

1 0

Replies

replied on May 30, 2017

It would indeed upload again every time it checks the import folder; if Import Agent let you do that. Version 10 won't let you define the same directory in post-processing as the source, but I don't know about prior versions.

If all of your users have access to the repository, I recommend you have them work on the spreadsheets from the repository. Then you have features like checking out documents, access rights, and version tracking on those Excel files.

0 0
replied on May 30, 2017

Hi Glen, 

 

Because they are shared documents, multiple users open the files at any one time, hence if we are to use them within Laserfiche, we have to account for files being locked by users etc. 

 

If we are to set it to start at a certain time during the day, and not have it run for 2 hours at a time, would that fix the issue? 

 

Thanks

Ziad

0 0
replied on May 30, 2017

Hi Ziad,

Glen is correct that Import Agent will upload every time it checks the import folder. To run daily between 8-10 pm means Import Agent will only check the folder between 8-10 pm. So it may still upload the files multiple times.

 

For your case, I think you would like Import Agent check the folder and import once every night. Instead of running as service, Import Agent gives an option to run once. You can configure a windows task scheduler to run Import Agent once by specifying argument "-o" to ImportAgentService.exe. In this way, Import Agent checks the import folder, imports the files once and exit.

0 0
replied on May 31, 2017

Hi Huazhen, 

 

I have multiple profiles configured within IA to perform other tasks throughout the day, would this affect them as well? 

Thank you,

Ziad

 

0 0
replied on May 31, 2017

Hi Ziad,

yes, if configured to run once, it will affect all the profiles.

0 0
SELECTED ANSWER
replied on June 1, 2017

I have an alternate solution for you outside of Laserfiche.

Put the Excel files in a folder that your users work from that is NOT monitored by Import Agent. Then create a new folder (not shared, so your users cannot touch it) that Import Agent can monitor.

Then set up a Scheduled Task in windows to run the copy command line program to copy the contents of the folder of those Excel files being used by your users to the folder that Import Agent Monitors. You can do things like force the copy if it complains about the files being open.

 

1 0
replied on June 1, 2017

Hi Glen, 

 

I think that sounds like a good workaround and a good option for these files, 

 

I will test this option and see how it goes, 

 

Thanks 

Ziad

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

Sign in to reply to this post.