The entity with a name = 'uii_option' was not found in the MetadataCache

Nov 3, 2011 at 4:30 PM

Hello,

When running CCA sample application i am facing the error shown below.  I'll be appreciated if you could give any opinion about this error?

/* Error Log */

03.11.2011 16:43:16: CCA: DESKTOP_ERR_FATAL_ERROR:A possibly fatal error has occurred.  The application may now exit.
<error>
  <code>0x80041102</code>
  <description>The entity with a name = 'uii_option' was not found in the MetadataCache.</description>
  <type>Platform</type>
</error>
System.Web.Services.Protocols.SoapException: Server was unable to process request.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Microsoft.Crm.SdkTypeProxy.CrmService.Execute(Request Request)
   at Microsoft.Uii.CrmEntityManager.CrmExtensionMethods.Execute(CrmService crmService, String entityName, Boolean activeRecords, String[] columns)
   at Microsoft.Uii.CrmEntityManager.OptionEntityManager.GetOptions(CrmService crmService)
   at Microsoft.Uii.AifServices.OptionsService.GetOptions()
   at Microsoft.Uii.AifServices.OptionsService.GetOptionSetting(String itemName)
   at Microsoft.Uii.Common.ConfigurationValueReader.ReadAppSettings(String key)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.SetAuditFlag(String auditFlagName)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.GetOptions()
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.DoLoginStep(LoginSteps loginSteps)
   at Microsoft.Uii.Desktop.UI.Core.DesktopLoader.LoadDesktop()
   at Microsoft.Uii.Desktop.UI.Core.DesktopBase.StartDesktopLoad()
   at Microsoft.Uii.Desktop.UI.Wpf.WpfDesktop.WpfRootDesktopForm_Loaded(Object sender, RoutedEventArgs e)
   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 e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at MS.Internal.LoadedOrUnloadedOperation.DoWork()
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   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)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(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)
   at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
   at Microsoft.Practices.CompositeUI.Windows.WindowShellApplication`2.Start()
   at Microsoft.Practices.CompositeUI.CabApplication`1.Run()
   at Microsoft.Uii.Csr.AifWpfShellBase`1.StartApplication()
   at Microsoft.Crm.Accelerator.Cca.WpfDesktop.Program.Main() in C:\Program Files\Microsoft Uii\CCA\Source Code\AgentDesktop\Program.cs:line 72

Nov 4, 2011 at 2:37 PM

That error is usually caused by not loading the UII Solution to CRM before running the desktop for the first time.

Did you load the UII Solution?

MattB

Nov 4, 2011 at 2:40 PM

You might also want to check out this link:

http://gtcrm.wordpress.com/2011/07/14/installing-the-customer-care-accelerator-cca-for-crm-2011/

Dec 5, 2011 at 9:22 PM

MattB thanks for your reply.

I reinstalled uii components on the crm server and made  customization steps  carefully accourding to Uii deployment guide. It seems that i might have missed a few steps when applying customization steps.