web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error when i create a SystemUser through Import from Excel

(0) ShareShare
ReportReport
Posted on by

I have CRM 2015 and i am trying to import an Excel for create a SystemUser.

I take an error for "Could not load file or assembly 'Microsoft.Crm.Online.DirectoryData" although i use crm 2015 on premises.

I Take the error below from Trace Reader.

----------------------------------------------------------------------------------------------------------------------------------

Web Service Plug-in failed in SdkMessageProcessingStepId: {57CDBB1B-EA3E-DB11-86A7-000A3A5473E8}; EntityName: systemuser; Stage: 30; MessageName: SetStateDynamicEntity; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
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)
Inner Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Crm.Online.DirectoryData, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
at Microsoft.Crm.ObjectModel.RoleServiceInternal`1.ThrowIfTenantAdminUser(Guid userId, ExecutionContext context, Int32 errorCode)
at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.Disable(BusinessEntityMoniker moniker, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SystemUserService.Microsoft.Crm.Sdk.IStateful.SetStateStatus(BusinessEntityMoniker , Int32 , Int32 , ExecutionContext ).

----------------------------------------------------------------------------------------------------------------------------------

at CrmException..ctor(Exception innerException, Int32 errorCode, Object[] arguments) ilOffset = 0x10
at VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) ilOffset = 0x65
at Pipeline.Execute(PipelineExecutionContext context) ilOffset = 0xDD
at MessageProcessor.Execute(PipelineExecutionContext context) ilOffset = 0x171
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 transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion) ilOffset = 0x16E
at OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation) ilOffset = 0x0
at OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode) ilOffset = 0x23
at OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode) ilOffset = 0x0
at InprocessServiceProxy.ExecuteCore(OrganizationRequest request) ilOffset = 0x34
at ImportOperationImportFile.SWSCreate(Guid organizationId, Entity dynamicEntity, Guid importFileId, Guid importDataId, Guid& createdRecordsId) ilOffset = 0x4E6
at ImportOperationImportFile.CreateOrUpdateEntityInPassOne(Guid organizationId, Guid importFileId, Object[] colValues, Dictionary`2 entityIdToEntityDictionary, List`1 columnsToScanInPassOne, List`1 additionalColumnsToScanInPassOne, Boolean needsSecondPass) ilOffset = 0x867
at ImportOperationImportFile.ProcessImportFileForPassOne(Guid organizationId, Guid importFileId, Boolean needSecondPass) ilOffset = 0x0
at ImportOperationImportFile.ProcessImportFileNotNeedingPassTwo(Guid importFileId, Guid organizationId) ilOffset = 0x3D
at ImportOperationImport.ExecuteImportOperation(Guid organizationId, Guid importId, Int32 operationType) ilOffset = 0x1DA
at ImportOperation.InternalExecute(AsyncEvent asyncEvent) ilOffset = 0x134
at AsyncEventHandlerCommand`1.Execute(IAsyncEvent asyncEvent) ilOffset = 0xD8
at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory) ilOffset = 0x9B
at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager) ilOffset = 0x138
at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation) ilOffset = 0x0
at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) ilOffset = 0x18
at IsolatedOperation.Execute() ilOffset = 0x27
at MonitoredOperation.Execute() ilOffset = 0xD
at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) ilOffset = 0xC
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) ilOffset = 0x79
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) ilOffset = 0x9
at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() ilOffset = 0x35
at ThreadPoolWorkQueue.Dispatch() ilOffset = 0xA4
Crm Exception: Message: An unexpected error occurred., ErrorCode: -2147220970, InnerException: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Crm.Online.DirectoryData, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Crm.Online.DirectoryData, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at Microsoft.Crm.ObjectModel.RoleServiceInternal`1.ThrowIfTenantAdminUser(Guid userId, ExecutionContext context, Int32 errorCode)
at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.Disable(BusinessEntityMoniker moniker, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SystemUserService.Microsoft.Crm.Sdk.IStateful.SetStateStatus(BusinessEntityMoniker , Int32 , Int32 , ExecutionContext )
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

----------------------------------------------------------------------------------------------------------------------------------

MessageProcessor fail to process message 'SetStateDynamicEntity' for 'systemuser'.

----------------------------------------------------------------------------------------------------------------------------------

System.IO.FileNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #58DFD560: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Crm.Online.DirectoryData, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Crm.Online.DirectoryData, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at Microsoft.Crm.ObjectModel.RoleServiceInternal`1.ThrowIfTenantAdminUser(Guid userId, ExecutionContext context, Int32 errorCode)
at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.Disable(BusinessEntityMoniker moniker, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SystemUserServiceInternal`1.SetState(BusinessEntityMoniker moniker, Int32 newState, Int32 newStatusCode, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SystemUserService.Microsoft.Crm.Sdk.IStateful.SetStateStatus(BusinessEntityMoniker , Int32 , Int32 , ExecutionContext )

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

----------------------------------------------------------------------------------------------------------------------------------

Error in Create. ImportDataId {A0DEEFBB-E7DD-E811-80E1-000D3A22A3EB} | Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An unexpected error occurred.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>An unexpected error occurred.</Message>
<Timestamp>2018-11-01T15:07:02.4770749Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.IO.FileNotFoundException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #58DFD560</Message>
<Timestamp>2018-11-01T15:07:02.4926661Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Crm.Asynchronous.ImportOperationImportFile.SWSCreate(Guid organizationId, Entity dynamicEntity, Guid importFileId, Guid importDataId, Guid& createdRecordsId)

*This post is locked for comments

I have the same question (0)
  • Radu Chiribelea Profile Picture
    6,667 on at

    Did you register any Microsoft.Crm dlls in the GAC? What is your current build? Are you running the latest Update Rollup?

  • Community Member Profile Picture
    on at

    I haven't register any dll in the GAC.

    Version 7.0.2.53

  • Radu Chiribelea Profile Picture
    6,667 on at

    Can you try to install UR 03 and see if that fixes the issue? www.microsoft.com/.../details.aspx

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans