Hi All,
I am experiencing a strange error when creating a user in the system.Its extremely slow and ends up returning "Unexpected error"
Please see below the trace logs
[2017-07-20 20:31:11.030] Process: w3wp |Organization:32017c20-5fed-e611-80c5-005056b91128 |Thread: 27 |Category: Platform.Metadata |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | <>c__DisplayClass1.<LoadMetadataContainerFromDatabase>b__0 ilOffset = 0x14>Multi-org sharable cache loading system and non-system metadata with build number 8.1.0.359 and language 1033 [2017-07-20 20:36:33.798] Process: w3wp |Organization:32017c20-5fed-e611-80c5-005056b91128 |Thread: 27 |Category: ADUtility |User: 7002230b-60ed-e611-80c5-005056b91128 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | SecurityUtils.TryGetGuidFromSid ilOffset = 0x94>Error while retrieving GUID from SID. Exception: System.Threading.ThreadAbortException: Thread was being aborted. at System.DirectoryServices.Interop.UnsafeNativeMethods.IDirectorySearch.GetFirstRow(IntPtr hSearchResult) at System.DirectoryServices.SearchResultCollection.ResultsEnumerator.MoveNext() at System.DirectoryServices.SearchResultCollection.get_InnerList() at System.DirectoryServices.SearchResultCollection.get_Count() at Microsoft.Crm.SecurityUtils.GetGuidFromSid(DirectorySearcher searcher, Byte[] sid) at Microsoft.Crm.SecurityUtils.TryGetGuidFromSid(Byte[] sid) [2017-07-20 20:36:33.814] Process: w3wp |Organization:32017c20-5fed-e611-80c5-005056b91128 |Thread: 27 |Category: ADUtility |User: 7002230b-60ed-e611-80c5-005056b91128 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | SecurityUtils.GetUserId ilOffset = 0x39>Error while retrieving userId. Exception: System.Threading.ThreadAbortException: Thread was being aborted. at System.DirectoryServices.Interop.UnsafeNativeMethods.IDirectorySearch.GetFirstRow(IntPtr hSearchResult) at System.DirectoryServices.SearchResultCollection.ResultsEnumerator.MoveNext() at System.DirectoryServices.SearchResultCollection.get_InnerList() at System.DirectoryServices.SearchResultCollection.get_Count() at Microsoft.Crm.SecurityUtils.GetGuidFromSid(DirectorySearcher searcher, Byte[] sid) at Microsoft.Crm.SecurityUtils.TryGetGuidFromSid(Byte[] sid) at Microsoft.Crm.SecurityUtils.GetUserId(String domainName, Boolean limitGlobalCatalogSearches) [2017-07-20 20:36:33.845] Process: w3wp |Organization:32017c20-5fed-e611-80c5-005056b91128 |Thread: 27 |Category: Platform.Sdk |User: 7002230b-60ed-e611-80c5-005056b91128 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | VersionedPluginProxyStepBase.Execute ilOffset = 0x65>Web Service Plug-in failed in SdkMessageProcessingStepId: {5ACABB1B-EA3E-DB11-86A7-000A3A5473E8}; EntityName: systemuser; Stage: 30; MessageName: Create; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Threading.ThreadAbortException: Thread was being aborted. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values) at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider) at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context) at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) . [2017-07-20 20:36:36.507] Process: w3wp |Organization:32017c20-5fed-e611-80c5-005056b91128 |Thread: 27 |Category: Exception |User: 7002230b-60ed-e611-80c5-005056b91128 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | CrmException..ctor ilOffset = 0x9 at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, TraceCategory traceCategory) ilOffset = 0x9 at CrmException..ctor(Exception innerException, Int32 errorCode, Object[] arguments) ilOffset = 0xC at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) ilOffset = 0x65 at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action) ilOffset = 0x2D at Pipeline.Execute(PipelineExecutionContext context) ilOffset = 0xD8 at <>c__DisplayClass1.<RunStage>b__0() ilOffset = 0x0 at PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action) ilOffset = 0x2D at MessageProcessor.RunStage(PipelineExecutionContext context, Int32 pipelineStage) ilOffset = 0x39 at MessageProcessor.Execute(PipelineExecutionContext context) ilOffset = 0x1EB at InternalMessageDispatcher.Execute(PipelineExecutionContext context) ilOffset = 0xE4 at ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) ilOffset = 0x22D at OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType) ilOffset = 0x28B at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, Guid targetCallerRegardingObjectId, UserType targetUserType, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode) ilOffset = 0x37 at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x58 at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext) ilOffset = 0x28 at InprocessServiceProxy.ExecuteCore(OrganizationRequest request) ilOffset = 0x34 at PlatformCommand.XrmExecuteInternal() ilOffset = 0x109 at CreateCommand.Execute() ilOffset = 0xC at EntityProxy.Create(Boolean performDuplicateCheck, Guid auditingTransactionId) ilOffset = 0x0 at EntityProxy.Create(Boolean performDuplicateCheck) ilOffset = 0x7 at SystemUser.Create(Boolean performDuplicateCheck) ilOffset = 0x1F at EntityProxy.CreateAndRetrieve(String[] columnSet, Boolean performDuplicateCheck) ilOffset = 0x0 at CommandBase.UpdateEntity(Entity entity, Boolean retrieve) ilOffset = 0xAC at SaveCommand.ExecuteCommand(String commandXml) ilOffset = 0x116 at CommandBase.Execute(String commandXml, Boolean encodeValues) ilOffset = 0x13 at InlineEditWebService.Execute(Int32 command, String commandXml, Nullable`1 encodeValues) ilOffset = 0xE5 at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) ilOffset = 0xFFFFFFFF at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) ilOffset = 0x25 at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ilOffset = 0xCF at LogicalMethodInfo.Invoke(Object target, Object[] values) ilOffset = 0x4F at WebServiceHandler.Invoke() ilOffset = 0xC3 at WebServiceHandler.CoreProcessRequest() ilOffset = 0x13E at SyncSessionlessHandler.ProcessRequest(HttpContext context) ilOffset = 0x39 at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x18D at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15 at PipelineStepManager.ResumeSteps(Exception error) ilOffset = 0x27C at HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) ilOffset = 0x31 at HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) ilOffset = 0xD3 at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x11E at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x9 at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x1C8 at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x9>Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970, InnerException: System.Threading.ThreadAbortException: Thread was being aborted. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values) at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider) at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context) at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) [2017-07-20 20:36:36.554] Process: w3wp |Organization:32017c20-5fed-e611-80c5-005056b91128 |Thread: 27 |Category: Platform |User: 7002230b-60ed-e611-80c5-005056b91128 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | MessageProcessor.Execute ilOffset = 0x1EB>MessageProcessor fail to process message 'Create' for 'systemuser'. [2017-07-20 20:36:36.601] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 27 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x221>System.Threading.ThreadAbortException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #F8626F50: System.Threading.ThreadAbortException: Thread was being aborted.> at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)> at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)> at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)> at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)> at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)> at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) [2017-07-20 20:36:36.617] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 27 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | CrmException..ctor ilOffset = 0x9 at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, TraceCategory traceCategory) ilOffset = 0x9 at CrmException..ctor(String message, Int32 errorCode) ilOffset = 0x6 at ExceptionUtility.CreateCrmExceptionFromServiceFault(FaultException`1 fe) ilOffset = 0x1B at PlatformCommand.XrmExecuteInternal() ilOffset = 0x109 at CreateCommand.Execute() ilOffset = 0xC at EntityProxy.Create(Boolean performDuplicateCheck, Guid auditingTransactionId) ilOffset = 0x0 at EntityProxy.Create(Boolean performDuplicateCheck) ilOffset = 0x7 at SystemUser.Create(Boolean performDuplicateCheck) ilOffset = 0x1F at EntityProxy.CreateAndRetrieve(String[] columnSet, Boolean performDuplicateCheck) ilOffset = 0x0 at CommandBase.UpdateEntity(Entity entity, Boolean retrieve) ilOffset = 0xAC at SaveCommand.ExecuteCommand(String commandXml) ilOffset = 0x116 at CommandBase.Execute(String commandXml, Boolean encodeValues) ilOffset = 0x13 at InlineEditWebService.Execute(Int32 command, String commandXml, Nullable`1 encodeValues) ilOffset = 0xE5 at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) ilOffset = 0xFFFFFFFF at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) ilOffset = 0x25 at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ilOffset = 0xCF at LogicalMethodInfo.Invoke(Object target, Object[] values) ilOffset = 0x4F at WebServiceHandler.Invoke() ilOffset = 0xC3 at WebServiceHandler.CoreProcessRequest() ilOffset = 0x13E at SyncSessionlessHandler.ProcessRequest(HttpContext context) ilOffset = 0x39 at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() ilOffset = 0x18D at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) ilOffset = 0x15 at PipelineStepManager.ResumeSteps(Exception error) ilOffset = 0x27C at HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) ilOffset = 0x31 at HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) ilOffset = 0xD3 at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x11E at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x9 at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF at UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus) ilOffset = 0xFFFFFFFF at PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x1C8 at PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) ilOffset = 0x9>Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970 [2017-07-20 20:36:36.632] Process: w3wp |Organization:32017c20-5fed-e611-80c5-005056b91128 |Thread: 27 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | ErrorInformation.LogError ilOffset = 0x17>MSCRM Error Report: -------------------------------------------------------------------------------------------------------- Error: An unexpected error occurred. Error Number: 0x80040216 Error Message: An unexpected error occurred. Error Details: An unexpected error occurred. Source File: Not available Line Number: Not available Request URL: Stack Trace Info: [CrmException: An unexpected error occurred.] at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal() at Microsoft.Crm.Application.Platform.ServiceCommands.CreateCommand.Execute() at Microsoft.Crm.Application.Platform.EntityProxy.Create(Boolean performDuplicateCheck, Guid auditingTransactionId) at Microsoft.Crm.Application.Platform.EntityProxy.Create(Boolean performDuplicateCheck) at Microsoft.Crm.Application.Platform.SystemUser.Create(Boolean performDuplicateCheck) at Microsoft.Crm.Application.Platform.EntityProxy.CreateAndRetrieve(String[] columnSet, Boolean performDuplicateCheck) at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.UpdateEntity(Entity entity, Boolean retrieve) at Microsoft.Crm.Core.Application.WebServices.InlineEdit.SaveCommand.ExecuteCommand(String commandXml) at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.Execute(String commandXml, Boolean encodeValues) [2017-07-20 20:36:36.742] Process: w3wp |Organization:32017c20-5fed-e611-80c5-005056b91128 |Thread: 27 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | ErrorInformation.LogError ilOffset = 0x17 >MSCRM Error Report: -------------------------------------------------------------------------------------------------------- Error: Thread was being aborted. Error Message: Thread was being aborted. Source File: Not available Line Number: Not available Request URL: Stack Trace Info: [ThreadAbortException: Thread was being aborted.] at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.Execute(String commandXml, Boolean encodeValues) at Microsoft.Crm.Core.Application.WebServices.InlineEditWebService.Execute(Int32 command, String commandXml, Nullable`1 encodeValues) [2017-07-20 20:36:36.742] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 27 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x221 >System.Threading.ThreadAbortException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #0B3ACC05: System.Threading.ThreadAbortException: Thread was being aborted.> at Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.Execute(String commandXml, Boolean encodeValues)> at Microsoft.Crm.Core.Application.WebServices.InlineEditWebService.Execute(Int32 command, String commandXml, Nullable`1 encodeValues) [2017-07-20 20:36:36.773] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 27 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | MainApplication.Application_Error ilOffset = 0x9F>Request vfghgbhlapvmw1t/.../InlineEditWebService.asmx failed with exception System.Web.HttpException (0x80004005): Request timed out. [2017-07-20 20:36:36.773] Process: w3wp |Organization:32017c20-5fed-e611-80c5-005056b91128 |Thread: 27 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | ErrorInformation.LogError ilOffset = 0x17>MSCRM Error Report: -------------------------------------------------------------------------------------------------------- Error: Request timed out. Error Message: Request timed out. Error Details: Request timed out. Source File: Not available Line Number: Not available Request URL: vfghgbhlapvmw1t/.../InlineEditWebService.asmx Stack Trace Info: [HttpException: Request timed out.] [2017-07-20 20:36:36.773] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 27 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 960bfe68-2fb9-4907-970a-444204f127fb | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x221 >System.Web.HttpException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #76AA6098: System.Web.HttpException (0x80004005): Request timed out.