Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

unhandled exception after organization import

(0) ShareShare
ReportReport
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
    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
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans