Error in CRM 2011 Outlook Client: Retrieval of a page from CRM server failed due to an error
-
Wednesday, March 28, 2012 7:18 PM
I've just come across an issue in CRM Outlook client with pinned views that I was able to solve and thought the solution might help other people if they come across the same problem.
I'm not sure what actions the user performed but they were testing pinned views on an entity in the CRM Outlook client when they became unable to access the entity any more. Closing and re-opening Outlook didn't solve the problem, re-configuring the Outlook client didn't solve the problem. Other entities could be accessed correctly.
This is how Outlook appeared:
With Tracing enabled on the client machine, the following error message appeared in the Application event log:
Fault bucket , type 0 Event Name: CRMmanaged Response: Not available Cab Id: 0 Problem signature: P1: 5.0.9690.1992 P2: OUTLOOK P3: Microsoft.Crm P4: Unrecognized Guid format.;Hash='-656984235' P5: P6: P7: P8: P9: P10: Attached files: These files may be available here: C:\Users\training8\AppData\Local\Microsoft\Windows\WER\ReportQueue\NonCritical_5.0.9690.1992_be39755d306c1de7a13dc6f26ffc62a6bfd38c6_12130c81 Analysis symbol: Rechecking for solution: 0 Report Id: c901b421-78fd-11e1-bfe1-00217030db10 Report Status: 4
I tracked this issue down to a value in the UserEntityUISettings table in the CRM database: TabOrderXml. There is one row per-entity per-user that stores the user defined customisations for the Outlook client.
The valid values for this table are:
- NULL
- A single GUID: {00000000-0000-0000-00AA-000010001002}
- A semi-colon delimited list of GUIDs: {00000000-0000-0000-00AA-000010001002};{00000000-0000-0000-00AA-000010001003}
However, in the case of this user, the value had become the following:
- {00000000-0000-0000-00AA-000010001002};;
Outlook was unable to handle the two semi-colons at the end without GUID values.
To fix the error I performed the following steps:
- Execute the following SQL against the CRM database:
update UserEntityUISettings set TabOrderXml = NULL where OwnerId = '645CF03B-ECE5-E011-9978-00155D650A09' and ObjectTypeCode = 1Where OwnerId is the ID of the system user and ObjectTypeCode is the type code of the entity that the user is having problems with.
- Close Outlook for the user (if it isn't already closed)
- Re-configure the Outlook client for the user
- Re-open Outlook
The reason for re-configuring the CRM Outlook client for the user is that the settings are cached on the users machine in an SSCE database and re-configuring CRM Outlook client resets the database, forcing a refresh of the settings from the server.
Are you sure you want to
delete ?
Are you sure
you want to delete?
Are you sure
that you want to reset the votes?- Changed Type Andrii ButenkoMVP, Moderator Wednesday, September 19, 2012 10:42 AM
All Replies
-
Tuesday, May 22, 2012 4:54 AM
Adrian, thankyou so much for posting this. My issue was similar - same 'Unrecognized Guid format' error - for a particular user when they tried to access a case view. I was unable to spot the problem in UserEntityUISettings so I adopted a more brute-force method.
First I also got my user to close Outlook.
Then I ran this against my CRM DB:
delete from UserEntityUISettingsBase
where OwnerId = '4EC8616D-656E-E111-9DC1-005056880046' - (obviously insert the appropriate OwnerId here - which you can find in the SystemUserBase table)He didn't have any settings he wanted to keep :)
After that I reset the CRM Outlook client for the user:
"C:\Program Files\Microsoft Dynamics CRM\Client\ConfigWizard\Microsoft.Crm.Application.Outlook.ConfigWizard.exe" /q /xa
and then reconfigured with:
"C:\Program Files\Microsoft Dynamics CRM\Client\ConfigWizard\Microsoft.Crm.Application.Outlook.ConfigWizard.exe"
Thanks for putting me on the right track.
-
Tuesday, May 22, 2012 7:01 PM
Thank you Adrian, this has been helpful! We're getting the same error, and it may/may not be the tabbed views. Same behavior though.
This is what the contents of the send error report to Microsoft contained:
Exception generated at: 5/22/2012 9:48:36 AM
Error Type: System.FormatException
Error Message: Unrecognized Guid format.
Error Stack Trace: System.FormatException: Unrecognized Guid format.
at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
at System.Guid..ctor(String g)
at Microsoft.Crm.Application.SMWrappers.CrmTabContainer.CreateStartingTabs()
at Microsoft.Crm.Application.SMWrappers.CrmTabContainer..ctor(ShellFrame shell, String entityType)
at Microsoft.Crm.Application.SMWrappers.ShellFrame.<>c__DisplayClass6.<.ctor>b__0()
at Microsoft.ExceptionHelper.ExceptionFilter.TryFilter[TEx](Action body, Predicate`1 filter, Action`1 catchClause)
at Microsoft.Crm.Application.SMWrappers.ShellFrame..ctor(ExplorerWrapper explorerWrapper)
at Microsoft.Crm.Application.SMWrappers.ShellManager.GetShellFromEntityType(Explorer explorer, String entityType, IClientOrganizationContext context)
at Microsoft.Crm.Application.SMWrappers.ActiveXShellFrame.Init()
at Microsoft.Crm.Application.SMWrappers.ActiveXUserControl.CreateHandle()
Stack Frame:
at OutlookUtility.HandleExceptionInternal(Exception exception, Boolean showMessageBox, IWin32Window messageBoxOwner, String errorMessage)
at OutlookUtility.HandleException(Exception exception, IWin32Window messageBoxOwner)
at ActiveXUserControl.CreateHandle()
at Control.get_Handle()
at ActiveXImpl.InPlaceActivate(Int32 verb)
at ActiveXImpl.DoVerb(Int32 iVerb, IntPtr lpmsg, IOleClientSite pActiveSite, Int32 lindex, IntPtr hwndParent, COMRECT lprcPosRect)
at Control.System.Windows.Forms.UnsafeNativeMethods.IOleObject.DoVerb(Int32 iVerb, IntPtr lpmsg, IOleClientSite pActiveSite, Int32 lindex, IntPtr hwndParent, COMRECT lprcPosRectOutlook client log file result:
Level: Error | GuidResult.SetFailure
>ShellFrame constructor: Grid control initialized
[2012-05-22 10:54:24.062] Process:OUTLOOK |Organization:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (I blocked this out) |Thread: 1 |Category: Application.Outlook |User: 00000000-0000-0000-0000-000000000000 |Level: Error | GuidResult.SetFailure
at GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
at Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
at Guid..ctor(String g)
at CrmTabContainer.CreateStartingTabs()
at CrmTabContainer..ctor(ShellFrame shell, String entityType)
at <>c__DisplayClass6.<.ctor>b__0()
at ExceptionFilter.TryFilter(Action body, Predicate`1 filter, Action`1 catchClause)
at ShellFrame..ctor(ExplorerWrapper explorerWrapper)
at ShellManager.GetShellFromEntityType(Explorer explorer, String entityType, IClientOrganizationContext context)
at ExplorerWrapper.SetupMenus(String context, Boolean removeCurrentMenus)
at ExplorerWrapper.AttachToFolder()
at ExplorerWrapper.<CheckFolderSwitch>b__12()
at ExceptionFilter.TryFilterAllCatch(Action body, Action`1 filter)
at ExplorerWrapper.CheckFolderSwitch()
at ExplorerWrapper.explorer_FolderSwitch()
at RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at Delegate.DynamicInvokeImpl(Object[] args)
at DelegateWrapper.Invoke(Object[] args)
at ComEventsMethod.Invoke(Object[] args)
at ComEventsSink.System.Runtime.InteropServices.NativeMethods.IDispatch.Invoke(Int32 dispid, Guid& riid, Int32 lcid, INVOKEKIND wFlags, DISPPARAMS& pDispParams, IntPtr pvarResult, IntPtr pExcepInfo, IntPtr puArgErr)Any ideas?
-
Wednesday, June 27, 2012 7:54 PM
I think this can be caused by deleted custom fields used as columns in pinned Advanced Find views. The entity grid in Outlook client can’t load because the pinned, tabbed view can’t load because it can’t complete the SQL query of a field that no longer exists. Here's the full post I wrote that I think can be related:
http://social.microsoft.com/Forums/en-US/crm/thread/d45cc740-78d2-4c17-ada7-3df7de8570d3/
Basically you should remove the deleted field column from all advanced find views for that entity.
-
Monday, August 27, 2012 12:58 PM
Hi Guys,
I had the same problem, When i click on Accounts and Lead Entities in outlook ,I get the error as Adrian has specified:
Retrieval of a page from CRM server failed due to an error.
Earlier I would get the error "CRM FAILED TO LOAD" .But now i get the error as specified above Retrival failed.
Solution for this I got is;
This Happens Because of the Default Public View not set.Check it Correctly,Default Public view is Deleted.
Go to Customization ->Customize the system->Entities->Select Entity which has problem (Accounts and Lead in my case)->Views->Select a Public View->Go to More Actions-> and set it as Default Public View->Publish All Customizations.
Now Go to Outlook and You can see the Entity data in Outlook.
Hope This Helps To All CRM Techies.
Thanks and Regards
Mohsinkhan R.P
- Proposed As Answer by Rajshiva Sunday, October 07, 2012 12:21 PM
- Unproposed As Answer by AdrianRitchie Tuesday, November 13, 2012 11:12 AM
- Proposed As Answer by Carolette Monday, December 10, 2012 10:31 AM
-
Monday, August 27, 2012 2:49 PMThanks Mohsinkhan! By the way, Adrian's issue has been addressed in CRM 2011 UR10 which was just released.
-
Tuesday, November 13, 2012 11:12 AM
This has just happened again to a user with CRM2011 UR10v2 installed, so it appears that either it wasn't fixed, it's a regression bug, or there is another bug that can cause the same issue.
The solution proposed by mrpathan did not work.
-
Tuesday, May 21, 2013 1:45 PM
There is another reason for this issue and it is to do with security roles. If CRM has been customized in any way then you should ensure that the appropriate permissions are present in the User's Security Role.
The 2 specific permissions that need to be present are:
Business Management - Security Role - ORG Read
Customizations - Customizations - ORG Read