Technical Notes, Zetadocs

HOWTO: Stop the "A control add-in library in 64-bit format is expected." error from showing in event log

ZTN4505

This Zetadocs technical note applies to:

  • Zetadocs for NAV
  • Microsoft Dynamics 64 bit Clients

Summary

Since the release of Dynamics 2016, Microsoft introduced a 64 bit client for NAV and Zetadocs modifications to pages contain two FactBoxes so that both types of clients are supported without code modifications. This in turn makes NAV write a log entry in the event log that states “A control add-in library in 64-bit format is expected”. In order to avoid this log from showing you will need to follow the instructions in this technote.

More information

To avoid the logs from showing up you will need to follow the steps below for each page that have been modified with the Zetadocs Factbox:

1-     Open the NAV Development Environment

2-     Select the page that contains the Zetadocs Factbox and design it.

3-     Remove from the page the following entry:

4-     Open the Code view(F9) and go to the function OnAfterGetCurrRecord and delete the following code:

IF ZDWinAddinVisible THEN

BEGIN

  CurrPage.Zetadocs.PAGE.SetRecordID(ZdRecRef.RECORDID);

  CurrPage.Zetadocs.PAGE.UPDATE(TRUE);

END;

5-     Save, Close and compile the page.

Last updated: 8th December 2017 (JC) 

Keywords: capture addin, 32-bit factbox, Zetadocs Express, Zetadocs Capture