Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Workflow only works for me (admin) but not other user?

(0) ShareShare
ReportReport
Posted on by 155

Hi All,

I have a workflow that allows me to change the status of a fulfilled order to Active. This removes the read only setting, one can make adjustments, and then manually fulfil again.

Another user now needs access to this workflow too.

It works fine for me (admin) every time, but when the other user tries to run the workflow it gets stuck in waiting.The Scope is set to Org. The Error indicates it cannot make the change because it is read only, I know this, that is the purpose of this workflow, to change the "read only" status.

Plugin Trace:

[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.UpdateEntity]
[UpdateStep2]

Error Message:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: The entity cannot be updated because it is read-only.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ActivityId>7d2691cc-4f60-45f6-8377-5485406c1abc</ActivityId>
  <ErrorCode>-2147220946</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
  <Message>The entity cannot be updated because it is read-only.</Message>
  <Timestamp>2018-10-17T02:42:28.3237778Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault>
    <ActivityId>7d2691cc-4f60-45f6-8377-5485406c1abc</ActivityId>
    <ErrorCode>-2147220946</ErrorCode>
    <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
    <Message>The entity cannot be updated because it is read-only.</Message>
    <Timestamp>2018-10-17T02:42:28.3237778Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault i:nil="true" />
    <OriginalException i:nil="true" />
    <TraceText i:nil="true" />
  </InnerFault>
  <OriginalException i:nil="true" />
  <TraceText>[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.UpdateEntity]
[UpdateStep2]
</TraceText>
</OrganizationServiceFault>
   at Microsoft.Crm.Workflow.Services.UpdateActivityService.Execute(ActivityContext executionContext, UpdateEntity updateEntity)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

*This post is locked for comments

  • Melissa.Bell Profile Picture
    Melissa.Bell 10 on at
    RE: Workflow only works for me (admin) but not other user?

    In case anyone else experiences this issue and the solution here does not work for them alone. I also had to change it to run on demand (it was still broken when it was running in the background). Once I updated it to be on demand, it worked for non admin users.

  • Eturyu Profile Picture
    Eturyu 155 on at
    RE: Workflow only works for me (admin) but not other user?

    Thanks Ravi, that was a big help. Is now working as intended ;)

  • Eturyu Profile Picture
    Eturyu 155 on at
    RE: Workflow only works for me (admin) but not other user?

    Hi Just coming back to it now, boss wanted other things done as a priority. Will let you know how I went shortly.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Workflow only works for me (admin) but not other user?

    How did you go with this? Does the above suggestion helped?

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Workflow only works for me (admin) but not other user?

    Something like this:

    orderstatus.png

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Workflow only works for me (admin) but not other user?

    Use the Change Status step and see if this works.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Workflow only works for me (admin) but not other user?

    Can you upload it again, it didn't come through

  • Eturyu Profile Picture
    Eturyu 155 on at
    RE: Workflow only works for me (admin) but not other user?

    does that help at all?

  • Eturyu Profile Picture
    Eturyu 155 on at
    RE: Workflow only works for me (admin) but not other user?

    New-Bitmap-Image-_2800_2_2900_.jpg

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Workflow only works for me (admin) but not other user?

    Just tried this on my test environment and it is working fine for system admin as well as users with salesperson role. Can you share the screenshot of your workflow please?

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,969 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans