[Help] UII Workflow Error - ArgumentNullException

Mar 2, 2011 at 9:19 AM

Hi,

I have been working on putting together a UII workflow, and have come across a concerning issue and am looking for explanations/resolutions.  As far as I can see, the issue lies within UII not the AgentDesktop application, but if anyone can point to any solutions I would be very grateful.

The issue specifics and steps to reproduce the error are below:

1.       Configure Hosted Application

Attribute          

Value

Name

Google

Hosted Application Type

Web Hosted Application

Display Group

MainPanel

Adapter

Use No Adapted

Application is Dynamic

Yes

User Can Close

Yes

Show in Toolbar Dropdown

Yes

URL

www.google.com

Use new browser process

Yes

Leave all other attributes blank or with default values

Leave the Default UII Action as-is

 

2.       Configure Workflow

Attribute          

Value

Name

Google Workflow

Forced Workflow

No

Leave all other attributes blank or with default values

 

3.       Configure UII Workflow Step

Attribute          

Value

Name

Google Workflow Step

Hosted Application

Google

Leave all other attributes blank or with default values

 

4.       Configure UII Workflow-Step Mapping

Attribute          

Value

Sequence

1

UII Workflow

Google Workflow

Hosted Application

Google Workflow Step

Leave all other attributes blank or with default values

 

5.       Launch AgentDesktop.exe and start a new session

  • Google should be available as a Dynamic Application
  • Google Workflow should be available as a Workflow

6.       Launch the Google Workflow and execute the only step, then complete it

7.       Run the Google Workflow a second time – it should now fail with the following error (and then exit):

DESKTOP_ERR_FATAL_ERROR:A possibly fatal error has occurred.  The application may now exit.

8.       Stack Trace:

System.ArgumentNullException: Value cannot be null.
Parameter name: element
   at System.Windows.Automation.AutomationProperties.SetName(DependencyObject element, String value)
   at Microsoft.Uii.Desktop.UI.Controls.Wpf.WpfPanel.AddApplicationToTabControl(Object child, PanelCloser bar, Boolean closeButton)
   at Microsoft.Uii.Desktop.UI.Controls.Wpf.WpfPanel.ShowTabControl(Object child, Boolean closeButton, PanelCloser bar)
   at Microsoft.Uii.Desktop.UI.Controls.Wpf.WpfPanel.Add(Object child, String initializationXml, Boolean useToolbar, Boolean closeButton)
   at Microsoft.Uii.Desktop.UI.Controls.Wpf.WpfDesktopApplicationUI.AddApplication(String panelName, Object app, String initializationXml, Boolean closeButton)
   at Microsoft.Uii.Desktop.UI.Core.DesktopBase.AppHost_RequestApplicationCreation(IHostedApplication app)
   at Microsoft.Uii.Csr.ApplicationHost.LoadApplications(ArrayList appsInWorkflow, Boolean loadOnlyGlobal, Boolean workflowExists)
   at Microsoft.Uii.Desktop.UI.Core.DesktopBase.iWorkFlowCtrl_WorkflowStarted(Object sender, WorkflowEventArgs e)
   at Microsoft.Crm.Accelerator.Cca.Samples.Wpf.Controls.WpfWorkflow.ListviewClickHandler(Int32 nClickedStepIndex, Guid nClickedStepId) in C:\xxx\Sample Controls\WpfWorkflow.xaml.cs:line 264
   at Microsoft.Crm.Accelerator.Cca.Samples.Wpf.Controls.WpfWorkflow.CommonStepHandler() in C:\xxx\Sample Controls\WpfWorkflow.xaml.cs:line 735
   at Microsoft.Crm.Accelerator.Cca.Samples.Wpf.Controls.WpfWorkflow.lvSteps_PreviewMouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in C:\xxx\Sample Controls\WpfWorkflow.xaml.cs:line 370
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   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.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
   at System.Windows.UIElement.OnPreviewMouseDownThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   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.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Jun 22, 2011 at 1:33 PM

Hi,

I am using CCA R1 and i get this error. Can anyone using CCA R2 confirm if this issue is resolved in R2.

Thanks and Regards,

Rajee

 

 

Jun 23, 2011 at 12:20 PM

So Im clear…

Are you executing an automation? Or are you just navigating to the Google when you start the workflow?

Meaning… are you just trying to open google’s web site when the user starts that workflow, and also make it available via a dynamic application?

Mattb.

Jun 23, 2011 at 3:42 PM

Hi Matt,

This error occurs even if i dont have an automation .

I make google available on demand from the toolbar(and hence Show in Toolbar Dropdown as true).

When user has not launched google from toolbar and starts the workflow,  google app gets launched and workflow runs fine for the first time . When i try to run the workflow again it throws the bespoke error.

Thanks and Regards,

Rajee