locked
CRM 2011 User Roles RRS feed

  • Question

  • Hi,

    We are in the process of migrating from CRM 4.0 to CRM 2011. We noticed that the roles that were created in CRM 4.0 are not editable in CRM 2011. We receive an 'Invalid argument' exception.

    Please suggest a best work around for this issue.

    Thanks,

    Rashmi.

    Tuesday, May 22, 2012 11:49 PM

All replies

  • The first place I'd start is to temporarily enable tracing to help determine why this error is occuring


    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk


    Wednesday, May 23, 2012 5:54 AM
    Moderator
  • Following is the error message that pops up when we try to change the role permissions.

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: You are attempting to update in the active context when there exists an active row, but either the active row has a state other than publish or unpublish
    or you are attempting to do a published update of a publishable component, which is not allowed.  _Input.IsBeingPublished: True; CurrentState: Microsoft.Crm.Platform.SolutionAwareComponents.BusinessComponentStateDetail:
    <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
      <ErrorCode>-2147220989</ErrorCode>
      <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
        <KeyValuePairOfstringanyType>
          <d2p1:key>CallStack</d2p1:key>
          <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)
       at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)
       at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType)</d2p1:value>
        </KeyValuePairOfstringanyType>
      </ErrorDetails>
      <Message>You are attempting to update in the active context when there exists an active row, but either the active row has a state other than publish or unpublish
    or you are attempting to do a published update of a publishable component, which is not allowed.  _Input.IsBeingPublished: True; CurrentState: Microsoft.Crm.Platform.SolutionAwareComponents.BusinessComponentState</Message>
      <Timestamp>2012-05-23T16:00:27.9697252Z</Timestamp>
      <InnerFault i:nil="true" />
      <TraceText i:nil="true" />
    </OrganizationServiceFault>

    Wednesday, May 23, 2012 4:01 PM