Configuring and Using Import Agent

Creating or Modifying a Profile

Profiles define the Windows folder from which files will be retrieved, the import schedule, what will happen to source files after an import is attempted, the metadata that should be assigned to imported files, and other settings. You must create at least one profile to use Import Agent.

To create or modify a profile

  1. Open the Import Agent Configuration Utility.
  2. Either select an existing profile to modify, or select Profile from the menu and select New. If you've already create a profile, you can choose to either create a new profile or copy an existing profile. Copying a profile is helpful if you need a profile similar to an existing profile and do not want to configure the entire profile from scratch.
  3. If you chose to create a new profile, the Sign in dialog box will prompt you to provide the credentials Import Agent will use to access Laserfiche.
  4. Select the Cloud tab and provide a user (not built-in system) account ID, username, and password. You can find your account ID in the web client by selecting your user name in the upper right corner and then selecting About. We recommend using a Service Principal user, which is a secure, unlicensed user that Laserfiche provides for connecting applications.

    Note: The user you choose to log in as must have sufficient rights to perform certain tasks. If the Laserfiche folder where files will be imported does not exist, the user must have rights to create it. If you have configured Import Agent to insert or replace content when a duplicate document is found, the user must have rights to modify the contents of the target document. The user must have rights to create documents in the destination folder, and, if you have configured Import Agent to assign metadata (e.g., templates, fields, tags), the account must have rights to do so.

  5. Click OK.
  6. Configure each of the following tabs:
    • ClosedGeneral
    • Use the General tab to define the profile's name, the Windows folder from which files will be retrieved, and a file retrieval filter.

      To configure the General tab

      1. Under Profile name, enter a unique profile name that describes what the profile does.
      2. Under Monitored folder, specify the full path to a folder on the current machine that you want to import documents from. Alternatively, use a UNC path to specify a folder on a network drive (e.g., \\ComputerName\ShareName\Path).
      3. Note: Monitored folders should only have one profile associated with each folder. Running two profiles on the same folder may cause files to be processed twice or not at all.

      4. Optional: Select Retrieve files from subfolders to import files from subfolders in the monitored folder.
      5. Under Filter, select one of the following options:
        • All files: With the exception of hidden and locked files, all items in the Windows folder will be retrieved.
        • Only those files whose names match one of these filters: You may limit the files that will be retrieved by specifying a filter for the file name and/or extension. The filter syntax is FileName.Extension. Click Add to create a filter.

        Example: If you specify that files must match *.tif then only TIFF images will be retrieved. If you specify that files must match AAA*.tif then only TIFF image files whose names start with AAA will be retrieved. The asterisk (*) used in these examples is a wildcard character that represents one or more characters. Import Agent supports two wildcards: *, representing any one or more characters, and ?, representing any single character.

        Note: If the profile's post-processing action is set to delete the source files, read-only files will be ignored. If the post-processing action is set to move the source files, read-only files will be imported. Learn more.

      6. Under Laserfiche files, you can configure settings for Laserfiche files that are specific to the profile you are configuring. These settings override the global list file settings and Laserfiche briefcase settings configured in the File Type tab of Import Agent's options. You can configure the profile to
        • Recognize files with LST extensions as list files
        • Recognize files with XML and LSTX extensions as list files
        • Recognize files with LFB extensions as list files
    • ClosedProperties
    • Use the Properties tab to define the sign-in account, the document properties (e.g., name, destination folders, volume), and the value of the Profile Count token.

      To configure the Properties tab

      1. Optional: Under Sign-in account, click Change to modify the user name and password that Import Agent will use to access the repository. We recommend using a Service Principal user, which is a secure, unlicensed user that Laserfiche provides for connecting applications.
      2. In the Document properties section, under Name, specify a naming convention for new documents.

        Tip: Use tokens to assign each document a unique name.

      3. Under Folder, specify the location inside the repository where new documents will be stored.
      4. Optional: Select Use the following folder if the above folder cannot be found. This option enables you to define an alternate destination folder in the event the primary folder has been deleted or moved.

        Note: To define all of the above settings, enter regular text, click the token button (>) to use tokens, or use a combination of the two.

      5. Under Volume, leave the default value set for Cloud accounts.
      6. Optional: Set the value of the Profile Count token.
    • ClosedFields
    • Use the Fields tab to assign a template and/or fields to imported documents. Configure the tab using any of the following methods:

      • Assign fields using a template. Select a template and the fields associated with the selected template will appear.
      • Note: Dynamic fields are not supported in Import Agent.

      • Assign fields independent of a template. Click Add/remove fields and select fields.
      • Use a combination of the above.

      After fields have been assigned, populate them by entering regular text, clicking the token button (>) to use tokens, or using a combination of the two.

    • ClosedTags
    • Use the Tags tab to assign tags and tag comments to imported documents.

      To configure the Tags tab

      1. Select one or more tags. You can add informational or security tags.
      2. Optional: Add tag comments by double-clicking in the Comments column next to a tag.
    • ClosedSchedule
    • Use the Schedule tab to define when Import Agent will retrieve and import files. Scheduling a time interval lets you reduce network usage during peak hours.

      To configure the Schedule tab

      • Choose one the following options.
        • Continuously:Import Agent will retrieve files continuously.
        • Tip: You can configure how often Import Agent will check for new files. Learn more.

        • Only at these times:Import Agent will only import files during a specified time interval. Click Add to define the interval. You can create multiple schedules.
        • Disable this profile: The profile will be inactive until this option is cleared.
    • ClosedProcessing
    • Use the Processing tab to specify if text will be retrieved from files, how long text pages will be, and how PDFs will be processed. When configuring this tab, keep in mind that:

      • All settings are optional.
      • You can configure OCR settings, such as language preference and image rotation. Learn more.

      To configure the Processing tab

      1. Under Generate text, choose to retrieve text and use and configure OCRif desired.
        • Retrieve text: Automatically retrieve any available text from PDF or electronic documents.
        • Use OCR if no text is available:OCR files that do not contain a text stream.
        • Configure profile-specific OCR settings: Set the OCR settings for the current profile.
          • Language:
          • Decolumnize text: Select to convert multiple columns of generated text into a single column. Clearing the checkbox will preserve column formatting in the OCRed text, even if that separates words and sentences.
          • Perform image enhancement: Click Configure to clean up the image to aid the OCR process. After the OCR process is performed, the image will return to its original state.
            • Deskew image: Straighten crooked images.
            • Despeckle image: Remove undesired noise from an image. Specify a maximum size of the noise to remove. Size is specified as both width and height. For example, setting this option to 2 will remove all noise that is equal to or smaller than a 2 pixel x 2 pixel square.
            • Rotate image: Automatically or manually rotate an image.
            • Line removal: Select to remove horizontal or vertical lines from the image.
          • Optimization priority: Specify an optimization style. There is generally a trade-off between speed and accuracy.
            • Speed: Reduces the amount of time it takes to OCR. Generated text may be less accurate. Choose this option if you are more concerned about the speed of your OCRing process than about having a few errors in the generated text.
            • Standard: Neither optimum speed nor optimum accuracy, but a balanced between the two. Choose this option if you want the generated text to be fairly accurate, but you prefer the OCRing process not take the maximum amount of time to run.
            • Accuracy: Increases OCR quality. Processing time will also be increased. Choose this option if you must have the most accurate text possible and are not concerned about how long it takes to run the OCRing process.
      2. Under Text file processing, specify if text files will be split into separate pages. If you select this option, specify the number of lines of text on each page.
      3. Note: If the text file has over 8,388,608 characters, then you must split the file before that character limit is reached to avoid an error.

      4. Under PDF file processing, choose if you want to generate Laserfiche image pages when importing PDF files.
        • Generate Laserfiche pages: Enable Import Agent to generate LaserficheTIFF image pages when importing a PDF file. If you know the documents you are importing are color, black and white, or high-quality color, select the corresponding option from this drop-down menu. If you are importing black and white documents, selecting that option can reduce file size and save space. The legacy option uses the default PDF storage process.
          • Keep original PDF files: Retain the PDF file after generating TIFF image pages. The import process will import the original unaltered PDF along with the TIFF image pages.
          • Preserve PDF annotations on Laserfiche pages: Convert PDF annotations to the equivalent Laserfiche annotations when generating TIFF image pages.
          • Ignore PDF native text: By default, Import Agent uses native text extraction for PDFs. Select this option to use OCRed text instead of native text.
          • Create pages at DPI: By default, Import Agent generates TIFF images that are 300x300 DPI. Select this checkbox to configure a different DPI value.
    • ClosedPost-processing
    • Use the Post-processing tab to specify what should happen to source files after an import.

      Source File Options
      Was the file imported successfully into Laserfiche? Options
      Yes You can choose to either:
      • Delete the source file.
      • Move the source file to a Windows folder.
      No You can specify the Windows folder where these files will be stored.

      To configure the Post-processing tab

      1. Under Imported files, choose one of the following options:
        • Deleted Source files will be deleted.
        • Moved to Source files will be moved to another Windows folder. Specify the full path to a folder on the current machine or use a UNC to specify a folder on a network drive (e.g., \\ComputerName\ShareName\Path). You can enter regular text, click the Token button (>) to use tokens, or use a combination of the two.
      2. [Optional] Select to delete unmodified files after a specific time frame. This setting deletes successfully imported files based on their last modified dates in Windows, not their import dates.
      3. Under Files that failed to import, specify the full path to a folder on the current machine or use a UNC to specify a folder on a network drive. Files that Import Agent fails to import will be moved to this location.
      4. Tip: You should regularly check this folder. Once you determine why Import Agent failed to import a file, correct the issue then move the file back to the original Windows folder. The file will be imported the next time the profile runs.

      5. Under Monitored subfolders, specify if you want to delete subfolders that are empty after their contents have been imported.
      6. Under List file import, select Post process the files referenced in list files (LST/LSTX) after import to apply the settings in this tab to the files referenced in list files. If you clear this option, then files referenced in list files will not be deleted or moved.
    • ClosedDocument Handling
    • Use the Document Handling tab to specify what should happen if the name of the document being imported matches the name of document already in the destination folder.

      To configure the Document Handling tab

      1. Under Image and text files, specify what will occur if an imported image or text file has the same name as an existing document in the destination folder:
        • Create a new document: A new Laserfiche image document will be created.
        • Update the existing document by: The new document will be merged with the existing document. Specify whether the new document will:
          • Be appended to the existing document.
          • Be prepended to the existing document.
          • Replace the existing document. Only text and images will be replaced, not metadata or security.
      2. Under Electronic files, specify what will occur if an imported electronic file has the same name as an existing document in the destination folder:
        • Create a new document: A new electronic document will be created.
        • Replace the electronic file: The imported document will replace the existing document.
      3. Under Metadata, select one of the following options:
        • Keep the existing document's metadata: Metadata associated with the existing document will not be modified.
        • Replace the existing document's metadata: Metadata associated with the imported document will replace the metadata associated with the existing document.
        • Merge the metadata. If the metadata conflicts ... Metadata associated with the imported document will be merged with the metadata associated with the existing document. Select which metadata will take precedence in the event of a conflict (e.g., if the same field contains different values).
      4. Under Version control, specify if you want to put the document you are importing into under version control. Selecting this option retains the original document as the first version. The updated document (with the new, imported content) will be saved as the second version.

Note: Profiles are stored as XML files under Program Data. (E.g., C:\ProgramData\Laserfiche\ImportAgent\Profiles)

Disabling a Profile

You can disable individual profiles to temporarily prevent them from running. To do so, open the profile and navigate to the Schedule tab. Select Disable this profile. The profile will remain, but will not run until you have returned to the Schedule tab and chosen an other schedule option.

To disable all profiles at once, stop or pause the Import Agent service. For more information, see Laserfiche Import Agent Service.

Deleting a Profile

To delete a profile, select the profile and press the Delete () button, or open the Profile menu and select Delete.