Problems Saving Changes to my Account Form

Proposed Problems Saving Changes to my Account Form

  • Friday, 3 August, 2012 5:55 PM
     
     

    Hello,

    I am a System Administrator who recently deleted two Security Roles that were associated to my Account Form. Now when I try to modify this Form I cannot save or publish any changes. I recieve the following error:

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: role With Id = d0bbb2c1-65c1-e111-b3f7-00155d04834b Does Not ExistDetail:
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ErrorCode>-2147220969</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
      <Message>role With Id = d0bbb2c1-65c1-e111-b3f7-00155d04834b Does Not Exist</Message>
      <Timestamp>2012-08-03T17:42:48.5066652Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText i:nil="true" />
    </OrganizationServiceFault>

    Any suggestions?

All Replies

  • Friday, 3 August, 2012 5:59 PM
     
     

    Save as a new form

    Delete the problem form

    Publish


    Carsten Groth http://carstengroth.wordpress.com Microsoft Dynamics Certified Technology Specialist CRM Online 30 Tage kostenfrei testen – http://crm.dynamics.com/de-de/trial-overview

  • Friday, 3 August, 2012 6:03 PM
     
     

    I tried that, but I cannot delte the original account form. I recieve this error when I do.

    "Sytem Forms cannot be deleted"

  • Friday, 3 August, 2012 6:12 PM
     
     Proposed

    You can try the following:

    Either export an unmanaged solution with the entity having problems and remove the security roles (IDs) from the xml file and reimport the solution. After this you should be able to publish again. Or you can add new security roles (same name as the deleted ones) and edit the GUIDs of these roles to contain the "old" values from your deleted security roles within SQL-Database. Be sure to have a full backup of your database in case of any other issues.

    After this you should be able to publish again. But because of editing the GUIDs in SQL you should then remove the security roles from the form, then delete these roles again and then publish all customizations.


    Carsten Groth http://carstengroth.wordpress.com Microsoft Dynamics Certified Technology Specialist CRM Online 30 Tage kostenfrei testen – http://crm.dynamics.com/de-de/trial-overview