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
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.
Thanks Ravi, that was a big help. Is now working as intended ;)
Hi Just coming back to it now, boss wanted other things done as a priority. Will let you know how I went shortly.
How did you go with this? Does the above suggestion helped?
Something like this:
Use the Change Status step and see if this works.
Can you upload it again, it didn't come through
does that help at all?
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?
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156