Error: "An unexpected error occurred: Exception has been thrown by the target of an invocation"

Description

An error occurs during report run and opening Excel. Error: “An unexpected error occurred: Exception has been thrown by the target of an invocation”

Operating System Warning

This solution requires advanced knowledge of your computer’s operating system. Contact your system administrator for assistance. Modifying your Windows Registry incorrectly can severely affect system operations. Sage is not responsible for operation issues caused by incorrectly modifying your Windows Registry. Always create a backup of your data before proceeding with advanced solutions.

Cause

The user does not have the correct permissions needed to register components to allow the Report Designer Add-in Taskpane to load correctly.

Resolution

Modify the permissions of the Users group of the following registry key to Full Control or Read/write. HKEY_LOCAL_MACHINE\SOFTWARE\Classes\