Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Importing a CRM2016 Organisation to D365 (onprem)

(0) ShareShare
ReportReport
Posted on by 2

Wondering if anyone out there have encountered this error while trying to import a CRM2016 organisation to D365, on-premise.

The import process seems to successfully go through the first few steps but about an hour in, during the

  • Microsoft.Crm.Tools.Admin.InstallCrmSystemConvertedSolutionsAction

 step, errors starts to appear in the log and they seemed to be the same error reported thousands of times.

Looking at the log entry, I am not sure if it's a permission issue or perhaps some custom workflow that is causing this error. The log entries don't give us enough detail to identify the offending objects. 

Any assistance or pointers would be much appreciated.

>Error while loading workflow xaml. Is xaml validation enabled: True, Error Message: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=2.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
[2019-05-30 22:55:53.486] Process: mmc |Organization:00000000-0000-0000-0000-000000000000 |Thread: 9(Async/Worker-thread.) |Category: Platform.Workflow |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: 817f53de-2890-48fb-96d7-ac91a5b4463c | XrmWorkflowXamlReader.Read ilOffset = 0x1A
at XrmWorkflowXamlReader.Read() ilOffset = 0x1A
at DynamicActivityXamlReader.Read() ilOffset = 0x14
at XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter) ilOffset = 0x6A
at XamlServices.Load(XamlReader xamlReader) ilOffset = 0x1A
at ActivityXamlServices.Load(XamlReader xamlReader, ActivityXamlServicesSettings settings) ilOffset = 0x26
at UIDataGenerator.DeserializeXaml(String xaml, ExecutionContext context) ilOffset = 0x55
at UIDataGenerator.GenerateWorkflowObjectModelFromXaml() ilOffset = 0x0
at UIDataGenerator.GenerateUIDataFromEntity(String formXml) ilOffset = 0x20F
at WorkflowDependencyVisitorBase.Visit(BusinessEntity workflow) ilOffset = 0x2D
at WorkflowDependencyCalculator.DetermineRequiredDependencies(ExecutionContext context) ilOffset = 0x2D
at DependencyCalculatorBase.DetermineAllDependencies(ICollection`1 records, ExecutionContext context) ilOffset = 0xB6
at DependencyHelperBase.CreateDependencies(ExecutionContext context) ilOffset = 0x26
at ComponentCollector.CreateComponentDependencies(Dictionary`2 recordsByComponentType, ExecutionContext context) ilOffset = 0x5B
at ComponentCollector.ProcessRecords(ExecutionContext context) ilOffset = 0x2A9
at DependencyService.CreateAllDependencies(ExecutionContext context) ilOffset = 0x145
at PopulateDependenciesAction.Do(IDictionary parameters) ilOffset = 0xB4
at CrmAction.ExecuteActionHelper(CrmAction action, IDictionary parameters, Boolean undo) ilOffset = 0x12D
at ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action) ilOffset = 0x49
at XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) ilOffset = 0x12
at ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action) ilOffset = 0x49
at XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) ilOffset = 0x12
at <>c__DisplayClass83_0.<DoAction>b__0() ilOffset = 0x58
at ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action) ilOffset = 0x49
at XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) ilOffset = 0x12
at <>c__DisplayClass67_0.<Install>b__0() ilOffset = 0xA8
at ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action) ilOffset = 0x49
at XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action) ilOffset = 0x12
at OrganizationOperation.Install(IDictionary stateSaver) ilOffset = 0xEA
at OrganizationUpgrader.Install(IDictionary stateSaver) ilOffset = 0x11
at OrganizationOperation.Execute() ilOffset = 0x13
at OrganizationUpgrader.Execute() ilOffset = 0x20
at ImportOrganizationInstaller.ImportAndUpgrade(OrganizationInfo organizationInfo) ilOffset = 0x2CC
at ImportOrganizationInstaller.Execute(Object obj) ilOffset = 0x7A
at ProgressController.ExecuteHandler() ilOffset = 0x3B
at StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs) ilOffset = 0xFFFFFFFF
at StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink) ilOffset = 0x0
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

*This post is locked for comments

  • JVorbeck Profile Picture
    70 on at
    RE: Importing a CRM2016 Organisation to D365 (onprem)

    Hey, can you clarify the resolution a little more? I am experiencing the same issue but I don't understand the link. The link reads like there is a required update to Visual Studio 2015 but I dont even have that installed on this server and also the code analysis version in the referenced article is a major revision down 1.x.x. So I am confused, what exactly did you require to resolve this issue?

  • EU_AU Profile Picture
    2 on at
    RE: Importing a CRM2016 Organisation to D365 (onprem)

    Thanks Kalpavruksh

    Have now managed to import and upgraded our CRM2016 organisation to D365. Amount that missing DLL, there were other missing dependencies as well but thanks for the tip.

  • Verified answer
    Kalpavruksh D365 CoE Profile Picture
    2,545 on at
    RE: Importing a CRM2016 Organisation to D365 (onprem)

    Hi,

    Please follow the below link to restore the assembly and check if it works for you.

    stackoverflow.com/.../could-not-load-file-or-assembly-microsoft-codeanalysis-version-1-3-1-0-cultu

    If found useful, please mark this answer as a verified answer.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans