Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

unhandled exception after organization import

Posted on by 550

Due to an issue I had to reinstall everything containing windows server. after a clean install of windows,sql and crm , while clean organization that come with crm installation works fine, my imported organization  (that has been backed up by sql maintenance just before windows goes down) faces with just an error has occurred!

windows event log says:

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 2/25/2018 6:57:21 PM 
Event time (UTC): 2/25/2018 3:27:21 PM 
Event ID: 5697f3d6365245fc9694d5326733828c 
Event sequence: 55 
Event occurrence: 4 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT-1-131640437920667070 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\ 
    Machine name: IRC 
 
Process information: 
    Process ID: 5404 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 
 
Exception information: 
    Exception type: CrmException 
    Exception message: There must be one and only one site map in the system
   at Microsoft.Crm.CrmException.Assert(Boolean condition, String message)
   at Microsoft.Crm.Application.MasterSiteMap.RetrieveSiteMap(Boolean useReferenceXml, Boolean retrieveLatest, IOrganizationContext context)
   at Microsoft.Crm.Application.MasterSiteMap.LoadMasterSiteMapInternal(DynamicMetadataCache metadataCache, Boolean useReferenceXml, Boolean retrieveLatest, IOrganizationContext context)
   at Microsoft.Crm.Application.MasterSiteMap.LoadMasterSiteMap(DynamicMetadataCache metadataCache, Boolean retrieveLatest, IOrganizationContext context)
   at Microsoft.Crm.Caching.MasterSiteMapCacheLoader.LoadCacheData(Int32 key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.SiteMap.GetSiteMapForUser(IUser user, Client client, Boolean isOffline, String forceGroupProfiles)
   at Microsoft.Crm.Application.SiteMap.GetSiteMapForUser(IUser user)
   at Microsoft.Crm.Application.Controls.AppNavBar..ctor()
   at ASP.crm_main_aspx.__BuildControlcrmAppNav()
   at ASP.crm_main_aspx.__BuildControlTree(crm_main_aspx __ctrl)
   at ASP.crm_main_aspx.FrameworkInitialize()
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information: 
    Request URL: https://irc:443/CRM/main.aspx 
    Request path: /CRM/main.aspx 
    User host address: ::1 
    User: IRC0\Administrator 
    Is authenticated: True 
    Authentication Type: Negotiate 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
 
Thread information: 
    Thread ID: 26 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: True 
    Stack trace:    at Microsoft.Crm.CrmException.Assert(Boolean condition, String message)
   at Microsoft.Crm.Application.MasterSiteMap.RetrieveSiteMap(Boolean useReferenceXml, Boolean retrieveLatest, IOrganizationContext context)
   at Microsoft.Crm.Application.MasterSiteMap.LoadMasterSiteMapInternal(DynamicMetadataCache metadataCache, Boolean useReferenceXml, Boolean retrieveLatest, IOrganizationContext context)
   at Microsoft.Crm.Application.MasterSiteMap.LoadMasterSiteMap(DynamicMetadataCache metadataCache, Boolean retrieveLatest, IOrganizationContext context)
   at Microsoft.Crm.Caching.MasterSiteMapCacheLoader.LoadCacheData(Int32 key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmMultiOrgCacheBase`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.SiteMap.GetSiteMapForUser(IUser user, Client client, Boolean isOffline, String forceGroupProfiles)
   at Microsoft.Crm.Application.SiteMap.GetSiteMapForUser(IUser user)
   at Microsoft.Crm.Application.Controls.AppNavBar..ctor()
   at ASP.crm_main_aspx.__BuildControlcrmAppNav()
   at ASP.crm_main_aspx.__BuildControlTree(crm_main_aspx __ctrl)
   at ASP.crm_main_aspx.FrameworkInitialize()
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 


 Can anyone please help?

*This post is locked for comments

  • Suggested answer
    nima19864 Profile Picture
    nima19864 550 on at
    RE: unhandled exception after organization import

    The problem has solved!

    It was a miss understanding or may be a bad error.

    I did try to restore a backup of my organization form Dynamic crm 2016 Update 2.1 to a Dynamic crm, 2016 update 2.2 . When I tried to import that an error came up that data base must be for a version newer than 2015!

    In community i found a resolution that said by changing minor version in Bsaeversion  table the error terminate and well, it did work and organization successfully imported but on the execution, the above problem raised!

    Finally I did reinstall crm from 2016 and installed updates one by one up to update 2.1 and no 2.2 then re-imported the database and everything's fine now!

    I guess they have changed database structure or something very serious in that update.

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: unhandled exception after organization import

    Hi nima19864,

    What CRM build are you running?

    From the error message it seems that the application is somehow finding two published sitemaps.

    If you run following query against the CRM Database:

    select SiteMapId,ComponentState,OverwriteTime,SolutionId from SiteMapBase

    do you see multiple rows having ComponentState = 0 and OverwriteTime 1900 ?

    You could also take a print screen of the above query results and paste it here.

    Regards,

    Radu

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans