Document Generator Error: Exception has been thrown by the target of an invocation. Line:mscorlib

  • KM00745399
  • 31-Jan-2014
  • 31-Jan-2014

This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.

Summary

Document Generator Error: Exception has been thrown by the target of an invocation. Line:mscorlib. The root cause of the error is Macro security being disabled for the Microsoft Word document.The issue is fixed by enabling the Macro security in Microsoft Word.

Error

When one tries to use document generator in QC. The following pop-up error from document generator occurs with details as below:
   
Exception has been thrown by the target of an invocation. Line:mscorlib

Environment: ALM11 Patch 15

Steps to reproduce the Issue:
1. Login to any ALM project from client machine installed with Word add-in.
2. Go to Tools--> Document Generator
3. Select Test Plan and then click Preview button
4. ALM tries to generate a document from word and Word triggers a security message whether to enable macro.
5. Click Disable macro
6. Then the error appears as mentioned above.

Cause

The root cause of the error is due to Macro security is being disabled in Microsoft Word document.

Fix

The issue is fixed by enabling the Macro security in Microsoft word.