cancel
Showing results for 
Search instead for 
Did you mean: 

Problems creating documents from Doc Comp templates

Stephen_Beck
Star Contributor
Star Contributor

We have a series of Doc Comp templates that work fine when using the Composition Preview tool in Word with an actual source document from OnBase.  We are using the SYS - Compose Document action in Workflow to create documents from these templates using the exact same type of source document.  When we execute the action in Workflow using the Thick  or Thin Client, the composed document window opens, but it contains no content.  When we execute the action in Worklfow using the Unity client, an exception message results.

 

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Attempt to access invalid address.

   at DSOFramer._FramerControl.Open(Object Document, Object ReadOnly, Object ProgId, Object WebUsername, Object WebPassword)    at AxDSOFramer.AxFramerControl.Open(Object document, Object readOnly, Object progId, Object webUsername, Object webPassword)    at Hyland.Canvas.Controls.OleInterop.OleActiveDocumentContainer.LoadFromFile(String filePath, Boolean isReadOnly)    at Hyland.Canvas.Controls.OleFileViewer.<>c__DisplayClass2.<ShowPreview>b__0(String s)    --- End of inner exception stack trace ---    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)    at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)    at System.Delegate.DynamicInvokeImpl(Object[] args)    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

4 REPLIES 4

Jordan_Polaniec
Champ in-the-making
Champ in-the-making

Hi Steve,

Do you still get this error when composing in Workflow if you turn off the Composition Preview when executing the Workflow action?  Also, does the error happen if you Compose a document with a Preview before archiving it outside of Workflow? 

 

Thank you,

Jordan

 

Stephen_Beck
Star Contributor
Star Contributor

When I turn off document preview the error goes away.  Since these are mostly "form documents" I will keep the preview setting disabled and instruct the users to open the document after it is created for reviewing and updating.

Steve Beck

Nathan_Dillinge
Champ on-the-rise
Champ on-the-rise

Hello,

Is there a need to install the Doc Comp software on the client computers for this to work? Or are you doing this from the same workstation that already has the software installed?

Thanks,

Jordan_Polaniec
Champ in-the-making
Champ in-the-making

Hi Nathan,

If composing from the Web Client, the Document Composition components will need to be installed on the Workstation via the Hyland Document Composition v2.0 installer.  If composing from the OnBase Client or Unity Client (in version 12 and up), the Doc Comp components are built-in to those respective Client installers. 

Steve, are you able to open other Word documents (not created by Document Composition) stored in OnBase on this Workstation? 

 

Thank you,

Jordan