Unhandled Exception: 'ActiveDocument' is not defined in windows 2008 server (Doc ID 1526979.1)

Last updated on NOVEMBER 05, 2015

Applies to:

Siebel CRM - Version 8.0 [20405] and later
Microsoft Windows x64 (64-bit) - Version: 2008 R2
""Checked for relevance on 05-Nov-2015""

Symptoms

On : 8.1.1.7 SIA [21238] version, Windows 2008 server

When attempting to run a Business Service in thin client that converts document to PDF, the following error occurs.

ERROR
-----------------------
Unhandled Exception: 'ActiveDocument' is not defined


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a BS with the following code that uses COM objects:

function TestDoc(inputs : PropertySet, outputs : PropertySet)
{
  var oWord = COMCreateObject("Word.Application");//Creating Com Object
  oWord.Documents.Open("C:\\sia81\\siebsrvr\\temp\\.....dox");
  oWord.ActiveDocument.Save();
 }

2. Run the BS from simulator and verify that the above error occurs.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms