Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Business Process Error

Posted on by 100

Hello Everybody,

I am facing the below on creating a new Delegation record on CRM.

8420.Untitled.png

I have given the user the role for "Delegate"

I have tried to follow this article for creating delegate.

Probably i am still missing something, which is causing me this error?

Any feedback shall be appreciated.

Thanks,

Madhu

*This post is locked for comments

  • Suggested answer
    Madhu Menon Profile Picture
    Madhu Menon 100 on at
    RE: Business Process Error

    Hi Guilaume,

    As you mentioned, the field "erm_delegatetouser" has Field Level Security enabled. The user who ran the workflow did not have permissions on this field. I had to go to ->Security->Field Security Profiles->Select respective profile-> Enable the field "Update" to "Yes" for "erm_delegatetouser" for specific user role.

    The issue has been resolved.

    Thank your very much for your feedback.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Business Process Error

    Hi,

    It seems that either the user starting the workflow or the owner of the workflow doesn't have the write privileges on your entity called : "em_delegation". More specifically for the field "erm:delegatetouser" is it a Field Level Security? If yes you will need to check who is able to update this field

  • Madhu Menon Profile Picture
    Madhu Menon 100 on at
    RE: Business Process Error

    I am adding the log file details. Looks like there is a custom workflow, that is giving this error. I need to check the workflow now, what is it doing?

    Anyways posting the error log

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: User with ID 6911f700-68b5-e711-80dd-00155da70437 does not have Update permissions for the erm_delegatetouser attribute in the erm_delegation entity. The erm_delegationid of the record is 7e3790f9-75bd-e711-80e8-00155da70437Detail:

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance&quot; xmlns="schemas.microsoft.com/.../Contracts&quot;>

     <ErrorCode>-2147220891</ErrorCode>

     <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic&quot;>

       <KeyValuePairOfstringanyType>

         <d2p1:key>CallStack</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema&quot; i:type="d4p1:string">   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action)

      at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.MessageProcessor.<>c__DisplayClass1.<RunStage>b__0()

      at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action)

      at Microsoft.Crm.Extensibility.MessageProcessor.RunStage(PipelineExecutionContext context, Int32 pipelineStage)

      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.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation)

      at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode)

      at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode)

      at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode)</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>OperationStatus</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema&quot; i:type="d4p1:string">0</d2p1:value>

       </KeyValuePairOfstringanyType>

       <KeyValuePairOfstringanyType>

         <d2p1:key>SubErrorCode</d2p1:key>

         <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema&quot; i:type="d4p1:string">-2146233088</d2p1:value>

       </KeyValuePairOfstringanyType>

     </ErrorDetails>

     <Message>User with ID 6911f700-68b5-e711-80dd-00155da70437 does not have Update permissions for the erm_delegatetouser attribute in the erm_delegation entity. The erm_delegationid of the record is 7e3790f9-75bd-e711-80e8-00155da70437</Message>

     <Timestamp>2017-10-30T13:26:48.98288Z</Timestamp>

     <InnerFault i:nil="true" />

     <TraceText>

    [Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]

    [9058d8b7-ed7c-e711-80d8-00155d366d3d: ]

    Starting sync workflow 'Delegation - Set Delegate to (User) automatically', Id: 8758d8b7-ed7c-e711-80d8-00155d366d3d

    Entering UpdateStep1_step:

    Sync workflow 'Delegation - Set Delegate to (User) automatically' terminated with error 'User with ID 6911f700-68b5-e711-80dd-00155da70437 does not have Update permissions for the erm_delegatetouser attribute in the erm_delegation entity. The erm_delegationid of the record is 7e3790f9-75bd-e711-80e8-00155da70437'

    </TraceText>

    </OrganizationServiceFault>

  • Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: Business Process Error

    Can you click on Download log file and share details here??

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans