Running Imports on a Schedule

Running Imports on a Schedule

   Laserfiche Import 12 – Running Imports on a Schedule

Select the profile and click Schedule…. Laserfiche Import creates a Windows scheduled task that runs the profile unattended, with the command-line runner. Each run writes to the profile's log.

The Schedule window
The Schedule window

When

  • Daily at a time.
  • Weekly on the days you choose.
  • Every few minutes: every N minutes, all day or between two times.

Run as

  • Windows account: the account the import runs as. It defaults to you.
  • Run only while this account is signed in (no password needed): the import only runs while that user is signed in to Windows.
  • Otherwise, enter the account's Windows password. The import then runs whether or not anyone is signed in. The password is passed to Windows Task Scheduler and is never kept by Laserfiche Import. The eye button shows what you typed.
  • The account is given access to the profile's stored Laserfiche credentials. It also needs access to the import, processed and log folders. For Windows sign-in to Laserfiche, the account must also be allowed into the repository.

Click Create schedule. When a profile is scheduled, the window shows the schedule, the last run and its result, and the next run. It also offers:

  • Run now – run the scheduled task immediately;
  • Disable / Enable – pause and resume the schedule;
  • Delete – remove the schedule.

The profile's summary shows its schedule too. The tasks are in Task Scheduler under Bluelake Software › Laserfiche Import 12, named after their profiles. Renaming a profile moves its schedule; if the task uses a password, you are asked for it again. Deleting a profile deletes its schedule.

Results of scheduled runs (the task's Last Run Result):

Result Meaning
0 Completed
1 Failed – see the log
2 The profile couldn't be run: it uses a connection or format this version doesn't support, or the command line was wrong
3 Completed with errors – some records were bypassed; see the log

To run a profile from your own script, use the command-line runner, as with the earlier version:

"C:\Program Files (x86)\Bluelake Software\Laserfiche Import 12\LFImport.Cli.exe" /Profile:"Example Image Import"