Error: Microsoft.Crm.Setup.Server.PublishDefaultDataAction

When you have uninstalled CRM and try to install this again, you might run into the following error message:


Microsoft.Crm.Setup.Server.PublishDefaultDataAction failed --->System.MissingMethodException: Method not found: 'Void Microsoft.Crm.CrmCache`1.RemoveEntry(System.String)'.

This is being caused by the fact that you have other components of CRM still installed from the previous installation. Make sure you remove all components including the SSRS connector, the Outlook client and the E-mail router. That should help you fix the problem.

Kudos go out to my colleague Alex Ries who found this solution.

For reference purposes the exact log message (can be found in %\AppData\Microsoft\MSCRM\Logs).

05:45:38|Verbose| Web Wizard import: Success
05:45:38|Verbose| Business Task import: Success
05:45:38| Info| Executing Install action: Microsoft.Crm.Setup.Server.PublishDefaultDataAction
05:45:50| Error| System.Exception: Action Microsoft.Crm.Setup.Server.PublishDefaultDataAction failed. ---> System.MissingMethodException: Method not found: 'Void Microsoft.Crm.CrmCache`1.RemoveEntry(System.String)'.
at Microsoft.Crm.Caching.CrmMultiOrgCache`2.RemoveEntry(Guid organizationId, TKey key, Boolean fireNotification)
at Microsoft.Crm.Caching.CrmMultiOrgCache`2.RemoveEntry(Guid organizationId, TKey key)
at Microsoft.Crm.Metadata.LabelCache.Flush(Int32 languageCode, IOrganizationContext context, CacheType cacheType)
at Microsoft.Crm.Setup.Server.Utility.NewOrgUtility.OrganizationPublishDefaultData(Guid organizationId)
at Microsoft.Crm.Setup.Server.PublishDefaultDataAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.Action.ExecuteAction(Action action, IDictionary parameters, Boolean undo)
--- End of inner exception stack trace ---, Error, RetryCancel, Option1

20 comments:

Viranga Kekulawala said...

We got same error message when we try to modify Plug-in, using tool and Removing the email router could not be a feasible solution to our scenario. We faced same issue and managed to fix without removing Email router. We applied Rollup packages for CRM 4.0 Server and Email Router.
Rollup packages are as follows:
• CRMv4.0- KB2267499-amd64-Server-LangID.exe
• CRMv4.0- KB2267499-amd64-Router-LangID .exe
• CRMv4.0- KB2267499-amd64-SRS-LangID.exe
• CRMv4.0- KB2267499-amd64-MUI-LangID.exe
http://support.microsoft.com/kb/2267499

computer support said...

Im hoping this is a fresh installation. I suggest u try these.



1. Delete the config database form SQL

2. Delete the program files directry of your CRM after uninstalling.

3. Then uninstall and reisntall IIS.



Then before u run the setup make sure your Windows Server is running SP2 and all updates have been installed. (Windows Update)



Install IIS and then run the CRM setup.

Hélder Oliveira said...

I Ronald i have this error:

"A acção Microsoft.Crm.Setup.Common.Update.DBUpdateAction falhou.

Exception has been thrown by the target of an invocation.

Unable to load DLL 'CRMCore.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"

any suggestion...
Thanks!

Ronald Lemmen said...

Hi Hélder Oliveira,

That's an error that I haven't seen before. I'm sure you have tried searching online before, so if that doesn't help either, then you can try reinstalling your server before installing CRM, or if that's not an option, then contact Microsoft support and ask them for help.

If you do find the solution, I'd be great if you can share that as well for future references.

Good luck!
Ronald

Hélder Oliveira said...

Hi Ronald

Already solved the problem.
During the installation of the Rollup 17 CRMCore.dll is not found by the environment variables that did was add the folder c: / Program Files / Microsoft Dynamics CRM / Server / bin to environment variables.
Follow the instructions:
http://www.computerhope.com/issues/ch000549.htm

Best Regards

Gaspard said...

Hi,

I updated my custom workflow so it doen't work right now.

I got this message :

# CRM Tracing Version 2.0
# LocalTime: 2013-02-11 10:07:54.3
# Categories:
# CallStackOn: No
# ComputerName: DATASRVCRM4
# CRMVersion: 4.0.7333.2644
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService

cutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
à System.Workflow.Runtime.Scheduler.Run()
[2013-02-11 17:20:22.9] Process:CrmAsyncService |Organization:ebb0911a-4b69-e211-8ad0-00155d641603 |Thread: 4 |Category: Platform.Workflow |User: 00000000-0000-0000-0000-000000000000 |Level: Error | WorkflowHost.OnWorkflowTerminated

# LocalTime: 2013-02-11 17:30:17.1
# Categories:
# CallStackOn: No
# ComputerName: DATASRVCRM4
# CRMVersion: 4.0.7333.2644
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService

[2013-02-11 17:30:17.1] Process:CrmAsyncService |Organization:ebb0911a-4b69-e211-8ad0-00155d641603 |Thread: 15 |Category: Platform.Workflow |User: 00000000-0000-0000-0000-000000000000 |Level: Error | WorkflowHost.OnWorkflowTerminated
>Workflow terminated: {D9A10846-6874-E211-BAC0-00155D641603} - System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à Datasurf.Crm.Data.datasurf_create_oit_create_campaign_oas.datasurf_create_oit_create_campaign_oas.Execute(IWorkflowContext ctx, String connexionString, String fonction, String accountid, String user, String password) dans D:\CrmMedia\DLL\Datasurf.Crm.Data.datasurf_create_oit_campaign_oas\datasurf_create_oit_create_campaign_oas.cs:ligne 32
à WF_datasurf_oit_create_campaign_crm.datasurf_oit_create_campaign_oas.Execute(ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.CompositeActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.ActivityExecutionFilter.Execute(Activity activity, ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.FaultAndCancellationHandlingFilter.Execute(Activity activity, ActivityExecutionContext executionContext)
à System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)
à System.Workflow.Runtime.Scheduler.Run()
# CRM Tracing Version 2.0
# LocalTime: 2013-02-11 17:44:04.2
# Categories:
# CallStackOn: No
# ComputerName: DATASRVCRM4
# CRMVersion: 4.0.7333.2644
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, WebService, ApiServer, HelpServer, DeploymentService


Please help.

Microsoft CRM Training said...

I am getting a bit different error than this :/
Don't know what to do with it :S

Unknown said...

I really appreciate spending some time to talk about that, I believe firmly regarding this and so really enjoy understanding more about this kind of subject.This is also a very good post which I really enjoyed reading. It is not everyday that I have the possibility to see something like this. CRM Software || MLM Software in Mumbai || ERP Software || System Software in Mumbai

Unknown said...


Keep up the fantastic piece of work, I read few blog posts on this web site and I believe that your site is real interesting and has lots of great information. ERP Software in Mumbai || System Software || CRM Software in Mumbai || MLM Software

Jhon Adam said...

Nice Blog...


http://www.vaphonesupport.com/

aryanoone said...

Thanks for sharing such a nice Blog.I like it.
mcafee com activate
activate my norton antivirus
norton product key
mcafee antivirus activation key
comcast support telephone number
avg antivirus tech support phone number
webroot contact number
kaspersky support phone number
Outlook helpline number
microsoft edge support number

Anonymous said...


Great Article. This Blog Contain Good information about ERP Software. Thanks For sharing this blog. Can you please do more articles like this blog.


machine maintenance software price in us
machine maintenance software development in us
crm software development cost in us
erp in chennai
crm software development cost in chennai
cloud erp in chennai

alps mlm software said...

Wonderful, I would like to big thanks for sharing such more useful articles for us. lastly, I appreciate this post. If you are looking for MLM Software India Company and want to discuss about your new MLM business startup.

Anonymous said...

Thanks admin for sharing such a wonderful article if you are looking for

khata bahi app
udhar khata book
My Cash Book
download My Cash Book app
best udhar khata app
bahi khata book online
ledger Book
employee tracking software
Download by given Link
https://play.google.com/store/apps/details?id=com.mycashbook

Deepak said...

Thanks admin for sharing such a wonderful article if you are looking for
monitoring software
employee Activity Software
Employee tracking system
increase employee productivity
time-tracking software
activity monitor software
logntrack
employee tracking software
Visit the website or you can reach us +91 7900152844 or Mail us at support@logntrack.com

Anonymous said...

Thanks admin for sharing such a wonderful article if you are looking for
Refurbished Laptops
Used Laptop
lamington road
Second hand Electronic Products
used laptop
Cheap Electronic products
Online Shopping
Buy second-hand laptops
Visit the website to purchase https://www.lamingtonroadmarket.com/

Anonymous said...

Thanks admin for sharing such a wonderful article if you are looking for
Custom Software Development
IT Outsourcing Company
Web Development
Mobile App development
JSF Primefaces
Software Development
JSF Primefaces
expense Manager
You can reach us +91 7900152844 or Mail us at support@daynilgroup.com

Deepak said...

whatsapp stickers
love messages
whatsapp stickers app
love stickers
bollywood stickers
love stickers for whatsapp
friends stickers
funny stickers
new sticker
whatsapp emoticons
whatsapp sticker android
new year stickers
sticker pack for whatsapp

Anonymous said...

Thanks admin for sharing such a wonderful article I have something which might interested please look into it
Fee Manager
Fee Management software
School Management Software
Gym Management Software
Online fee Management App
Online Gym Management software
Best Fee Management App
expense Manager
Download the app https://play.google.com/store/apps/details?id=com.feemanager

Anonymous said...

Thanks admin for sharing such a wonderful article if you are looking for
whatsapp stickers
love messages
whatsapp stickers app
love stickers
bollywood stickers
love stickers for whatsapp
friends stickers
funny stickers
new sticker
whatsapp emoticons
whatsapp sticker android
new year stickers
sticker pack for whatsapp
Downlaod Link Below
https://play.google.com/store/apps/details?id=com.stick.me"><