The unknown documents are exported with incorrect file name when the <SourceFile> tag is used in the template


PDFs are imported using the FlexiCapture Connect or Web Capture Station. In the project, the export of unknown documents is set up to export the files with the original file names using the <SourceFile> tag in the template, but the exported files have incorrect names.


The FlexiCapture Connect and Web Capture Station don't save the file name of the original file in the <SourceFile> tag.


For documents with Document Definitions, the following workarounds are recommended:

The Unknown Documents don't have any Document Definitions, so consider the following workaround:

  1. Create a new Document Definition that will be matched with the documents that can not be matched with "real" Document Definitions:
    • Choose the Semi-structured documents.
    • There is no need to use any image for this Document Definition.
    • Leave the Load FlexiLayout option unchecked.
  2. In the Export profiles of the new Document Definition create an export to image files and set it up according to your needs. Choose the Errors are irrelevant for the export condition.
  3. Follow the steps described in the articles above to make the name of the images exported with this Document Definition be the same as the source file.
  4.  Set the assembly for the created document definition:
    • Open the Document Definition properties > Assembly tab.
    • Set the maximum number of the Document Section to the desired number.
    • Enable the key field equality rule and choose the created field that is storing the original file name. It should look like this:
  5. Make sure to turn on the Use first acceptable FlexiLayout option on the project's Document Definitions list and move the created Document Definition to the bottom of the list, so that the created Document Definition would match only with the documents that were not matched with other Document Definitions.

Have more questions? Submit a request



Please sign in to leave a comment.