cancel
Showing results for 
Search instead for 
Did you mean: 

Object does not match target type exception thrown on send to as link from OnBase Unity 16 using office integrations 2016 x64. Has anyone run into this error before? User is on a surface Pro as well.

Chris_Weiner
Champ on-the-rise
Champ on-the-rise

Error below in detail:

System.Reflection.TargetException: Object does not match target type.

   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)

   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)

   at Hyland.Canvas.Controls.Outlook.MailItem.DisplayOutlookMessage()

   at Hyland.Canvas.Controls.Outlook.MailItem.Display()

   at Hyland.Canvas.Controls.OutlookMailCommandProcessor.DisplayDialogWithLinks(PopInfo popInfo)

   at Hyland.Canvas.Controls.MailCommandProcessor.ExecuteWithLinks()

   at Hyland.Canvas.Controls.Commands.Document.DocumentSendToEmailLinkCommand.InternalExecute(MailCommandProcessor processor, IEnumerable`1 documents, IRibbonWindow window)

   at Hyland.Canvas.Controls.Commands.Document.DocumentSendToEmailLinkCommand.<>c__DisplayClass1.<Execute>b__0()

   at Hyland.Canvas.Controls.MailCommandProcessor.ExecuteIfPossible(Action action)

   at Hyland.Canvas.Controls.Commands.Document.DocumentSendToEmailLinkCommand.Execute(IEnumerable`1 usersSelectedDocuments, IRibbonWindow window)

   at Hyland.Canvas.Controls.Commands.Document.DocumentSendToEmailCommand.Execute(IEnumerable`1 documents)

   at Hyland.Canvas.Controls.Commands.Document.DocumentCommand.Execute(IEnumerable`1 documents, Binding b)

   at Hyland.Canvas.Controls.DocumentList.ExecuteCommand(Object sender, ExecuteRoutedEventArgs`1 args)

   at lambda_method(Closure , Object , Object , Object )

   at Hyland.Canvas.Services.CommandRibbonBindingHandler.ExecuteHandler(Object sender, ExecutedRoutedEventArgs args)

   at System.Windows.Input.CommandBinding.OnExecuted(Object sender, ExecutedRoutedEventArgs e)

   at System.Windows.Input.CommandManager.ExecuteCommandBinding(Object sender, ExecutedRoutedEventArgs e, CommandBinding commandBinding)

   at System.Windows.Input.CommandManager.FindCommandBinding(CommandBindingCollection commandBindings, Object sender, RoutedEventArgs e, ICommand command, Boolean execute)

   at System.Windows.Input.CommandManager.FindCommandBinding(Object sender, RoutedEventArgs e, ICommand command, Boolean execute)

   at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)

   at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)

   at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

   at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)

   at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)

   at System.Windows.Input.CommandManager.TransferEvent(IInputElement newSource, ExecutedRoutedEventArgs e)

   at System.Windows.Input.CommandManager.OnExecuted(Object sender, ExecutedRoutedEventArgs e)

   at System.Windows.UIElement.OnExecutedThunk(Object sender, ExecutedRoutedEventArgs e)

   at System.Windows.Input.ExecutedRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object target)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)

   at System.Windows.Input.RoutedCommand.ExecuteImpl(Object parameter, IInputElement target, Boolean userInitiated)

   at System.Windows.Input.RoutedCommand.ExecuteCore(Object parameter, IInputElement target, Boolean userInitiated)

   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)

   at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

1 REPLY 1

Caroline_Franci
Champ on-the-rise
Champ on-the-rise

Were you able to find a solution to this? We are seeing a similar error sending documents as attachments from the Unity Client.