edoc Knowledge Base
Breadcrumbs

Internet Explorer script error when using the edoc ECM WebIntegration (edoc NAV plugin ecm)

Component

ECM WebIntegration, edoc NAV plugin ecm

Version

1.0.0.0 - 4.1.0

Created on

Last modified on

An error occurredFailed to render Workflows Metadata macro on page 2165506181 during export. If this problem continues, please contact our Customer Support Team for assistance.

Review status

An error occurredFailed to render Workflows Metadata macro on page 2165506181 during export. If this problem continues, please contact our Customer Support Team for assistance.

KB article number

468746382

Summary

The ECM WebIntegration or edoc NAV plugin ecm (from version 4.0.0) is used in Microsoft Dynamics NAV or Microsoft Dynamics Business Central, version 14.0, to display d.3 documents in the ECM system d.velop documents, version 8.1, and to search d.velop documents.

Due to the older Microsoft Dynamics versions Microsoft Dynamics NAV and Microsoft Dynamics Business Central, version 14.0, there are restrictions with regard to the browser version. An outdated Internet Explorer version leads to a script error so that the ECM WebIntegration or edoc NAV plugin ecm is not displayed.

The following error message is displayed: "An error has occurred in the script on this page. Error: The object does not support this action."

To fix the script error from Microsoft Windows 10 version 1803, download the Microsoft Edge WebView2 component from the Microsoft Developer website: Microsoft Edge WebView2 | Microsoft Edge Developer

This component is already present in Microsoft Windows 11 and is executed automatically so that the ECM WebIntegration is executed correctly.

In this KB article, you will learn how to install the Microsoft Edge WebView2 component in your network landscape.

Important requirements

  • You need write access to the edoc network connection: P:\Programming\nav archivelink\ECM Web Integration\ECMi1.0 EDGE\### Delivery ###

  • You need administrative access to the server with Dynamics NAV or Dynamics 365 Business Central.

  • You need the usual user permissions to access the client application Dynamics NAV or Dynamics 365 Business Central.

  • The server must be connected to the Internet in order to download the Microsoft Edge WebView2 component.

Solution

You must add the Edoc.Nav.WebBrowser.dll file and the edoc ECM WebIntegration directory to the server and client directories instead. If you do not delete the Edoc.Nav.WebBrowser.dll file, the script problem will persist.

Here's how

  1. Navigate to the linked edoc network directory: P:\Programming\nav archivelink\ECM Web Integration\ECMi1.0 EDGE\### Delivery ###

  2. Select the corresponding Dynamics NAV or Dynamics 365 Business Central version.

  3. Copy the edoc ECM Web Integration folder and paste it into the corresponding directories on the server in the server and client directory.

  4. Switch to the server with Dynamics NAV or Dynamics 365 Business Central.

  5. Navigate to the respective server and client add-in directories:

    • C:\Program Files\Microsoft Dynamics NAV\110\Service\Add-ins (The number 110, for example, is the Dynamics NAV version. Your version number may differ)

    • C:\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client\Add-ins (The number 110, for example, is the Dynamics NAV version. Your version number may differ)

  6. Delete the Edoc.Nav.WebBrowser.dll file in the respective directories and paste the copied edoc ECM WebIntegration directory. If you do not delete the DLL, the Internet Explorer problem will persist.

  7. Open the following link in your browser to download the Microsoft Edge WebView2 component: Microsoft Edge WebView2 | Microsoft Edge Developer

  8. Install the Microsoft Edge WebView2 component on the server.

After you log in to the Dynamics NAV or Dynamics 365 Business Central system again, the ECM WebIntegration is displayed correctly again.

Further scenarios and test steps for the update

  1. Check the local %temp% directory whether the obsolete Edoc.Nav.WebBrowser.dll file still exists. Be sure to delete this DLL as well.

  2. If the ECM WebIntegration is still not displayed correctly after the update, check whether the Edoc.Nav.WebBrowser.dll file has actually been deleted from the server and client directory.

  3. Also make the changes on all other servers with Microsoft NAV or Microsoft Dynamics 365 Business Central (service animal server, server for load balancing, terminal server, etc.).

  4. Install the Microsoft Edge WebView2 component on each client.

  5. Make sure that the edoc ECM Web Integration folder is not write-protected under any circumstances. Deactivate write protection if necessary.