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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM 4.0 - An unhandled exception has occurred when attempting to access data maps

(0) ShareShare
ReportReport
Posted on by 185

I'm an getting an unhandled exception error when I attempt to access a data maps on my Microsoft CRM 4.0 deployment.  When I examine the Application Event Log, I find the following error:

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date:  4/2/2012
Time:  3:40:31 PM
User:  N/A
Computer: CRMAPP01
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 4/2/2012 3:40:31 PM
Event time (UTC): 4/2/2012 10:40:31 PM
Event ID: 96e800a23bdf4302927adf2e74219d3f
Event sequence: 156463
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/1/ROOT-1-129778102284117638
    Trust level: Full
    Application Virtual Path: /
    Application Path: c:\inetpub\wwwroot\
    Machine name: CRMAPP01
 
Process information:
    Process ID: 7416
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: NullReferenceException
    Exception message: Object reference not set to an instance of an object.
 
Request information:
    Request URL: https://org.domain.com:443/tools/managemaps/edit.aspx?id={378A8EF9-D45F-4C7F-B6A4-6667E4C6F630}
    Request path: /tools/managemaps/edit.aspx
    User host address: 172.16.98.4
    User: {bcb0c55c-2915-e111-9767-0017a4461427}
    Is authenticated: True
    Authentication Type: CrmPostAuthentication
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at Microsoft.Crm.Web.Tools.ManageMaps.ManageMapsDetailPage.PopulateImportableEntityList(Object sender, CrmFormEventArgs e)
   at Microsoft.Crm.Application.Forms.EndUserForm.OnDataBound(CrmFormEventArgs e)
   at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, String formType)
   at Microsoft.Crm.Web.Tools.ManageMaps.ManageMapsDetailPage.ConfigureForm()
   at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 Any thougths.... ???

*This post is locked for comments

I have the same question (0)
  • Gus Gonzalez Profile Picture
    27,113 on at

    Are you sure this error is linked to the Data Map Access?

  • DBailey618 Profile Picture
    185 on at

    I don't think it's directly related to Data Map Access, but it's the only time I notice the problem.  When I attempt to create a new data map or edit an existing one, then I get this error.  

  • Gus Gonzalez Profile Picture
    27,113 on at

    Can you post a screenshot of the error?

  • DBailey618 Profile Picture
    185 on at

    When I attempt to create a new data map or edit an existing one, I get the following error:

     

    This generates the following event:

    Event Type: Warning
    Event Source: ASP.NET 2.0.50727.0
    Event Category: Web Event
    Event ID: 1309
    Date:  4/3/2012
    Time:  9:52:18 AM
    User:  N/A
    Computer: CRMAPP01
    Description:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 4/3/2012 9:52:18 AM
    Event time (UTC): 4/3/2012 4:52:18 PM
    Event ID: d099189357a14b51ba5c40f2bba45a9c
    Event sequence: 74667
    Event occurrence: 4
    Event detail code: 0
     
    Application information:
        Application domain: /LM/W3SVC/1/ROOT-1-129779147640980510
        Trust level: Full
        Application Virtual Path: /
        Application Path: c:\inetpub\wwwroot\
        Machine name: CRMAPP01
     
    Process information:
        Process ID: 2040
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
     
    Exception information:
        Exception type: NullReferenceException
        Exception message: Object reference not set to an instance of an object.
     
    Request information:
        Request URL: https://org.domain.com:443/tools/managemaps/edit.aspx
        Request path: /tools/managemaps/edit.aspx
        User host address: 172.16.98.3
        User: {bcb0c55c-2915-e111-9767-0017a4461427}
        Is authenticated: True
        Authentication Type: CrmPostAuthentication
        Thread account name: NT AUTHORITY\NETWORK SERVICE
     
    Thread information:
        Thread ID: 1
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at Microsoft.Crm.Web.Tools.ManageMaps.ManageMapsDetailPage.PopulateImportableEntityList(Object sender, CrmFormEventArgs e)
       at Microsoft.Crm.Application.Forms.EndUserForm.OnDataBound(CrmFormEventArgs e)
       at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, String formType)
       at Microsoft.Crm.Web.Tools.ManageMaps.ManageMapsDetailPage.ConfigureForm()
       at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
       at System.Web.UI.Control.PreRenderRecursiveInternal()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     

     

  • Verified answer
    Sejoon Park Profile Picture
    225 on at

    Recently I was troubleshooting something similar (general crm 4 .net exception), and I was able to figure out by digging deeper by debugging the CRM website code. Trust me, it’s possible with 'reflector' and it's awesome. It really helps me with understanding what's going on under the hood.

    Back to your post...

    Your post got me curious, and I tried to access 'New' link in "Data Maps" in our server, and got the similar error. So I am not sure my fix will resolve the issue, and it is definitely worth trying. I don’t know why this is happening. My guess is that the migration from the online CRM to on-premise didn’t work completely in our case. Here is what I did to my issue:

    1. Run "select * from organizationUIBase where formxml like '%mapFor%'" on the '[ORG]_MSCRM' database. If you are not seeing any record, then you and I are facing the same issue.

    2. Run "select * from organizationUIBase where formid='B7A85B67-63C6-49AF-8946-F3F9D248546A'". This is the form UI for "ImportMap" entity, and it should contain 'mapFor', if not, you will need to update that.

    Luckily I had my old Dev crm (default install without org. import), and I was able to retrieve the data in 'formxml' field.

    The following script is not guaranteed to work, and back up your data before updating…

    update organizationUIBase

                   set formxml=

                   '<forms><entity name="importmap" objecttypecode="4411"><form type="main" id="{71b19870-5e4e-4a19-8d4d-1cde7322d566}"><tabs><tab verticallayout="true" id="{78EBC298-32B2-4865-9686-83B4148FDFF7}" IsUserDefined="0"><sections><section name="general" showlabel="false" showbar="false" IsUserDefined="0" id="{CBD80EE3-89F7-4f4f-9874-1ED4910EAECA}"><rows><row><cell id="{2e53a167-4914-4508-87d9-b195fc77beff}"><control id="name" classid="{4273EDBD-AC1D-40d3-9FB2-095C621B552D}" datafieldname="name" /></cell></row><row><cell id="{be4c7150-5648-4b58-bc63-942b8ec3e181}"><control id="mapFor" classid="{3EF39988-22BB-4f0b-BBBE-64B5A3748AEE}" /></cell><cell id="{01bf9628-9c44-448a-8e2c-af5fd75b5f35}" /></row></rows></section><section name="description" showlabel="false" showbar="false" id="{97C407D7-27E9-4364-95E3-1C19A1C6EDD5}" IsUserDefined="0" height="auto"><rows><row><cell colspan="2" showlabel="true" rowspan="5" auto="true" id="{9b0f7b9c-2dbb-4f23-b931-6cf137626962}"><control id="description" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" datafieldname="description"></control></cell></row><row /><row /><row /><row height="auto" /></rows></section><section name="other" showlabel="false" showbar="false" IsUserDefined="0" id="{32A84176-6E75-44b5-8037-0AF431EE6239}"><rows><row><cell id="{d7374cf3-a357-4847-b6f4-b8646114e734}"><control id="ownerid" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="ownerid" disabled="true" /></cell><cell id="{b58e07c1-249b-4824-8001-3bbe0f94153f}" /></row><row><cell id="{5749b077-02c1-4ee7-9796-55cb3dfcae6b}"><control id="modifiedby" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="modifiedby" /></cell><cell id="{8077939f-4e41-49dc-b94d-878ef1114d4f}"><control id="modifiedon" classid="{5B773807-9FB2-42db-97C3-7A91EFF8ADFF}" datafieldname="modifiedon" /></cell></row><row><cell id="{f3829826-b75d-4b85-adef-33a0887a884e}"><control id="createdby" classid="{270BD3DB-D9AF-4782-9025-509E298DEC0A}" datafieldname="createdby" /></cell><cell id="{c4396dd9-0527-463a-9ccb-398bee5c4ffc}"><control id="createdon" classid="{5B773807-9FB2-42db-97C3-7A91EFF8ADFF}" datafieldname="createdon" /></cell></row></rows></section></sections></tab></tabs></form></entity><entity objecttypecode="4411" name="importmap"><form type="preview" id="{722f5a82-3e47-49f1-bec0-cd1b435932a9}"><tabs showlabels="false"><tab name="general" verticallayout="true" id="{1ad7ab41-85f5-4ec1-805a-1fbc2d89e949}" IsUserDefined="0"><sections><section name="information" id="{248561cb-a5e3-47e2-9685-e6f63ff74984}" IsUserDefined="0" showlabel="false" showbar="false"><rows><row><cell id="{85daa07d-31ce-486c-8f75-301efc70f407}"><control id="description" datafieldname="description" classid="{E0DECE4B-6FC8-4a8f-A065-082708572369}" /></cell></row><row><cell id="{961fad53-2f55-4b5d-a344-6ce8ace9b900}"><control id="targetentity" datafieldname="targetentity" classid="{3ef39988-22bb-4f0b-bbbe-64b5a3748aee}" /></cell></row></rows></section></sections></tab></tabs></form></entity></forms>'

                   where  formid='B7A85B67-63C6-49AF-8946-F3F9D248546A'

                  

  • DBailey618 Profile Picture
    185 on at

    Hi Sparky,

    Thank you very much for your response.  I think you may have resolved the issue.  When I ran the first query you suggested, I had no records that contained "mapFor".  I then proceeded to run your script to update formxml and I believe it resolved the issue.  I need to continue to test this, but so far so good.  Thanks again for taking the time to respond.

    DB

  • Gus Gonzalez Profile Picture
    27,113 on at

    Hey DB,

    How is the testing going?

    If the issue was resolved, can you mark Sparky's answer as verified?

    Thanks.

  • DBailey618 Profile Picture
    185 on at

    Thanks again Sparky, your response seems to have resolved my issue.  I really appreciate the response.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans