Export of data to M-Files from FlexiCapture 12 fails with error: "Failed to get an object type by the name"

Symptoms

The following error may occur in the processing logs (Processing Server Monitor → Tasks) of FlexiCapture in an attempt to export data to M-Files:

-1 222 26-3-2021 11:34:06 Document 1: Export to MFiles: System.Exception: Abbyy.Connectors.Dms.Infrastructure.DmsConnectorException: Document creation failed. ---> System.InvalidOperationException: Failed to get an object type by the name '<ClassName>'.

Cause

There are maybe several reasons for such error. Among them we can define the following: 

  1. The assemblies version of the Connector to M-Files varies from the version that is used in the M-Files. 
  2. The class specified in the Export Script doesn't exist in M-Files. 

Resolution

Before you can configure document export, you must add the assemblies to your ABBYY FlexiCapture
project. To add the assemblies, complete the following steps:

  1. Open the project in the ABBYY FlexiCapture Project Setup Station.
  2. Click ProjectDocument Definitions... to open the list of Document Definitions available for the project, select the Document Definition for which you want to specify new export settings, and click Edit...
  3. Click Document DefinitionDocument Definition Properties... to open the properties of the Document Definition and then click the .Net References tab.
  4. Click the Add... button on the .Net References tab. In the Add Assembly dialog box, select the Attached file from the Type drop-down list, and in the Reference field, specify the path to the DLL file that you wish to add. Repeat this step for the AfcDmsConnector.dll, DmsConnector.dll, and Abbyy.FlexiCapture.MFiles.Connector.dll files from the Bin folder in the connector distribution package.
  5. Click OK, then save and close the Document Definition editor. Next, click the Publish button to
    publish your Document Definition.

To map ABBYY FlexiCapture document definition fields to M-Files property definitions, you must first
configure metadata structure in M-Files Admin on your M-Files server.

More details about this topic can be found in the Connector for M-Files Guide which comes with the connector distribution package.

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.