CRM 2011 account form broken

Hi,

In the process of attempting to move a JavaScript plugin (Insideview) I have broken the account form.  I did not do anything much different than we've done in the past.  But there were two copies of this plug-in field and I deleted one of them and then published.  Now I get a CRM error -

I would restore the entire database from backup, but it has too much work in it at this point.  I did try deleting and reimporting the Insideview solution, but I get the same error.

I would consult Insideview, and may yet, but the error is in the account form so I think it will take a bigger repair.

I cannot get into any account, or any customization of an account form without hitting the error.  I can however, see the accounts in a different view, but not open one.

So at this point my plan is to

- backup the existing database with broken account form.
- restore the entire aged backup with working account form
- export the account settings
- restore the existing database with broken account form.
- import the account settings.

However, I'm not quite sure how to do this and wonder if someone has a better idea on how to fix the form so that it can be opened and then repaired in the existing database.  

Here is the error, with domain names changed.

Log Name:      Application
Source:        ASP.NET 4.0.30319.0
Date:          9/18/2013 12:43:28 PM
Event ID:      1309
Task Category: Web Event
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      XXX.XXX.local
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 9/18/2013 12:43:28 PM
Event time (UTC): 9/18/2013 7:43:28 PM
Event ID: b53141aca9c645e4b87be5e1efc74795
Event sequence: 11320
Event occurrence: 28
Event detail code: 0
 
Application information:
    Application domain: /LM/W3SVC/2/ROOT-1-130239825781590000
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
    Machine name: XXX
 
Process information:
    Process ID: 15612
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE
 
Exception information:
    Exception type: ArgumentNullException
    Exception message: Value cannot be null.
Parameter name: g
   at System.Guid..ctor(String g)
   at Microsoft.Crm.Application.ControlDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, CellDescriptor parentCellDescriptor, IOrganizationContext context)
   at Microsoft.Crm.Application.CellDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab, Boolean isInFirstColumn, Boolean isInLastColumn)
   at Microsoft.Crm.Application.CellCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.RowDescriptor..ctor(IXPathNavigable node, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Boolean rowVisible, TabDescriptor containerTab)
   at Microsoft.Crm.Application.RowCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Int32 sectionColumns, TabDescriptor containerTab)
   at Microsoft.Crm.Application.SectionCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.ColumnDescriptor..ctor(XmlNode columnNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.ColumnCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.TabDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
   at Microsoft.Crm.Application.TabCollection..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
   at Microsoft.Crm.Application.FormDescriptor.InitializeObjectModel(XmlNode formNode, EntityMetadata entityMetadata, FormType formType)
   at Microsoft.Crm.Application.FormDescriptor.Initialize(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType)
   at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, Boolean isUserForm, IOrganizationContext context)
   at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, IOrganizationContext context)
   at Microsoft.Crm.Application.FormDescriptor..ctor(Int32 typeCode, XmlNode formXml, Guid formId, FormType formType, IOrganizationContext context)
   at Microsoft.Crm.Application.Forms.FormDescriptorLoader.LoadCacheData(FormDescriptorCacheKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.Forms.FormDescriptorCache.GetFormDescriptor(Guid formId, IOrganizationContext context)
   at Microsoft.Crm.Application.Platform.AppFormFilter.GetSingleForm(Int32 entityTypeCode, FormType formType)
   at Microsoft.Crm.Controls.Header.get_UseReadFormInternal()
   at Microsoft.Crm.Controls.Header.get_UseReadForm()
   at Microsoft.Crm.Controls.Header.AddGlobalValues()
   at Microsoft.Crm.Controls.BasicHeader.AddGlobalValues()
   at Microsoft.Crm.Application.Controls.AppHeader.AddGlobalValues()
   at Microsoft.Crm.Controls.Header.PrepareForRendering()
   at Microsoft.Crm.Controls.Header.ConfigureForRendering()
   at Microsoft.Crm.Controls.Header.Render(HtmlTextWriter output)
   at Microsoft.Crm.Web.EntityHomepage.Render(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

 
 
Request information:
    Request URL: https://XXX/_root/homepage.aspx?etc=1&pagemode=iframe&sitemappath=Workplace|Customers|nav_accts 
    Request path: /_root/homepage.aspx
    User host address: XXX.XXX.XXX.XXX
    User: XXX\CRMADMIN
    Is authenticated: True
    Authentication Type: Federation
    Thread account name: NT AUTHORITY\NETWORK SERVICE
 
Thread information:
    Thread ID: 62
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace:    at System.Guid..ctor(String g)
   at Microsoft.Crm.Application.ControlDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, CellDescriptor parentCellDescriptor, IOrganizationContext context)
   at Microsoft.Crm.Application.CellDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab, Boolean isInFirstColumn, Boolean isInLastColumn)
   at Microsoft.Crm.Application.CellCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.RowDescriptor..ctor(IXPathNavigable node, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Boolean rowVisible, TabDescriptor containerTab)
   at Microsoft.Crm.Application.RowCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Int32 sectionColumns, TabDescriptor containerTab)
   at Microsoft.Crm.Application.SectionCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.ColumnDescriptor..ctor(XmlNode columnNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.ColumnCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.TabDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
   at Microsoft.Crm.Application.TabCollection..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
   at Microsoft.Crm.Application.FormDescriptor.InitializeObjectModel(XmlNode formNode, EntityMetadata entityMetadata, FormType formType)
   at Microsoft.Crm.Application.FormDescriptor.Initialize(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType)
   at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, Boolean isUserForm, IOrganizationContext context)
   at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, IOrganizationContext context)
   at Microsoft.Crm.Application.FormDescriptor..ctor(Int32 typeCode, XmlNode formXml, Guid formId, FormType formType, IOrganizationContext context)
   at Microsoft.Crm.Application.Forms.FormDescriptorLoader.LoadCacheData(FormDescriptorCacheKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.Forms.FormDescriptorCache.GetFormDescriptor(Guid formId, IOrganizationContext context)
   at Microsoft.Crm.Application.Platform.AppFormFilter.GetSingleForm(Int32 entityTypeCode, FormType formType)
   at Microsoft.Crm.Controls.Header.get_UseReadFormInternal()
   at Microsoft.Crm.Controls.Header.get_UseReadForm()
   at Microsoft.Crm.Controls.Header.AddGlobalValues()
   at Microsoft.Crm.Controls.BasicHeader.AddGlobalValues()
   at Microsoft.Crm.Application.Controls.AppHeader.AddGlobalValues()
   at Microsoft.Crm.Controls.Header.PrepareForRendering()
   at Microsoft.Crm.Controls.Header.ConfigureForRendering()
   at Microsoft.Crm.Controls.Header.Render(HtmlTextWriter output)
   at Microsoft.Crm.Web.EntityHomepage.Render(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 
Custom event details:

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="ASP.NET 4.0.30319.0" />
    <EventID Qualifiers="32768">1309</EventID>
    <Level>3</Level>
    <Task>3</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2013-09-18T19:43:28.000Z" />
    <EventRecordID>441146</EventRecordID>
    <Channel>Application</Channel>
    <Computer>TCC08.croner.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>3005</Data>
    <Data>An unhandled exception has occurred.</Data>
    <Data>9/18/2013 12:43:28 PM</Data>
    <Data>9/18/2013 7:43:28 PM</Data>
    <Data>b53141aca9c645e4b87be5e1efc74795</Data>
    <Data>11320</Data>
    <Data>28</Data>
    <Data>0</Data>
    <Data>/LM/W3SVC/2/ROOT-1-130239825781590000</Data>
    <Data>Full</Data>
    <Data>/</Data>
    <Data>C:\Program Files\Microsoft Dynamics CRM\CRMWeb\</Data>
    <Data>XXX</Data>
    <Data>
    </Data>
    <Data>15612</Data>
    <Data>w3wp.exe</Data>
    <Data>NT AUTHORITY\NETWORK SERVICE</Data>
    <Data>ArgumentNullException</Data>
    <Data>Value cannot be null.
Parameter name: g
   at System.Guid..ctor(String g)
   at Microsoft.Crm.Application.ControlDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, CellDescriptor parentCellDescriptor, IOrganizationContext context)
   at Microsoft.Crm.Application.CellDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab, Boolean isInFirstColumn, Boolean isInLastColumn)
   at Microsoft.Crm.Application.CellCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.RowDescriptor..ctor(IXPathNavigable node, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Boolean rowVisible, TabDescriptor containerTab)
   at Microsoft.Crm.Application.RowCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Int32 sectionColumns, TabDescriptor containerTab)
   at Microsoft.Crm.Application.SectionCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.ColumnDescriptor..ctor(XmlNode columnNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.ColumnCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.TabDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
   at Microsoft.Crm.Application.TabCollection..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
   at Microsoft.Crm.Application.FormDescriptor.InitializeObjectModel(XmlNode formNode, EntityMetadata entityMetadata, FormType formType)
   at Microsoft.Crm.Application.FormDescriptor.Initialize(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType)
   at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, Boolean isUserForm, IOrganizationContext context)
   at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, IOrganizationContext context)
   at Microsoft.Crm.Application.FormDescriptor..ctor(Int32 typeCode, XmlNode formXml, Guid formId, FormType formType, IOrganizationContext context)
   at Microsoft.Crm.Application.Forms.FormDescriptorLoader.LoadCacheData(FormDescriptorCacheKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.Forms.FormDescriptorCache.GetFormDescriptor(Guid formId, IOrganizationContext context)
   at Microsoft.Crm.Application.Platform.AppFormFilter.GetSingleForm(Int32 entityTypeCode, FormType formType)
   at Microsoft.Crm.Controls.Header.get_UseReadFormInternal()
   at Microsoft.Crm.Controls.Header.get_UseReadForm()
   at Microsoft.Crm.Controls.Header.AddGlobalValues()
   at Microsoft.Crm.Controls.BasicHeader.AddGlobalValues()
   at Microsoft.Crm.Application.Controls.AppHeader.AddGlobalValues()
   at Microsoft.Crm.Controls.Header.PrepareForRendering()
   at Microsoft.Crm.Controls.Header.ConfigureForRendering()
   at Microsoft.Crm.Controls.Header.Render(HtmlTextWriter output)
   at Microsoft.Crm.Web.EntityHomepage.Render(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

</Data>
    <Data>https://XXX/_root/homepage.aspx?etc=1&pagemode=iframe&sitemappath=Workplace|Customers|nav_accts</Data>
    <Data>/_root/homepage.aspx</Data>
    <Data>50.174.42.30</Data>
    <Data>CRONER\CRMADMIN</Data>
    <Data>True</Data>
    <Data>Federation</Data>
    <Data>NT AUTHORITY\NETWORK SERVICE</Data>
    <Data>62</Data>
    <Data>NT AUTHORITY\NETWORK SERVICE</Data>
    <Data>False</Data>
    <Data>   at System.Guid..ctor(String g)
   at Microsoft.Crm.Application.ControlDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, CellDescriptor parentCellDescriptor, IOrganizationContext context)
   at Microsoft.Crm.Application.CellDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab, Boolean isInFirstColumn, Boolean isInLastColumn)
   at Microsoft.Crm.Application.CellCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.RowDescriptor..ctor(IXPathNavigable node, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Boolean rowVisible, TabDescriptor containerTab)
   at Microsoft.Crm.Application.RowCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, Int32 sectionColumns, TabDescriptor containerTab)
   at Microsoft.Crm.Application.SectionCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.ColumnDescriptor..ctor(XmlNode columnNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.ColumnCollection..ctor(XmlNodeList nodes, EntityMetadata entityMetadata, FormDescriptor formDescriptor, TabDescriptor containerTab)
   at Microsoft.Crm.Application.TabDescriptor..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
   at Microsoft.Crm.Application.TabCollection..ctor(XmlNode formNode, EntityMetadata entityMetadata, FormDescriptor formDescriptor)
   at Microsoft.Crm.Application.FormDescriptor.InitializeObjectModel(XmlNode formNode, EntityMetadata entityMetadata, FormType formType)
   at Microsoft.Crm.Application.FormDescriptor.Initialize(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType)
   at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, Boolean isUserForm, IOrganizationContext context)
   at Microsoft.Crm.Application.FormDescriptor..ctor(EntityMetadata entityMetadata, XmlNode formXml, Guid formId, FormType formType, IOrganizationContext context)
   at Microsoft.Crm.Application.FormDescriptor..ctor(Int32 typeCode, XmlNode formXml, Guid formId, FormType formType, IOrganizationContext context)
   at Microsoft.Crm.Application.Forms.FormDescriptorLoader.LoadCacheData(FormDescriptorCacheKey key, IOrganizationContext context)
   at Microsoft.Crm.Caching.CrmSharedMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
   at Microsoft.Crm.Application.Forms.FormDescriptorCache.GetFormDescriptor(Guid formId, IOrganizationContext context)
   at Microsoft.Crm.Application.Platform.AppFormFilter.GetSingleForm(Int32 entityTypeCode, FormType formType)
   at Microsoft.Crm.Controls.Header.get_UseReadFormInternal()
   at Microsoft.Crm.Controls.Header.get_UseReadForm()
   at Microsoft.Crm.Controls.Header.AddGlobalValues()
   at Microsoft.Crm.Controls.BasicHeader.AddGlobalValues()
   at Microsoft.Crm.Application.Controls.AppHeader.AddGlobalValues()
   at Microsoft.Crm.Controls.Header.PrepareForRendering()
   at Microsoft.Crm.Controls.Header.ConfigureForRendering()
   at Microsoft.Crm.Controls.Header.Render(HtmlTextWriter output)
   at Microsoft.Crm.Web.EntityHomepage.Render(HtmlTextWriter writer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
</Data>
  </EventData>
</Event>
Eugene_PalmerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Feridun KadirPrincipal ConsultantCommented:
You can restore a backup of the working organization database to a database with a different name, then import the organization database in the CRM Deployment Manager. This has the advantage that you have both the working and non-working organizations available at the same time.

Then I would look at the FormXML definition for the account entity in both databases and compare.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eugene_PalmerAuthor Commented:
Hi,

Good idea, though I ended up rolling back the production to it's backup that the staff was ok with anyway.  I will likely keep a 'phantom' organization available.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Dynamics

From novice to tech pro — start learning today.