Hi All,
We get the following error randomly:
- ErrorCode: -2147160050
- Action could not be taken for few records before of status reason transition restrictions.
- [Entity] does not have valid status code
Scheduled workflow runs overnight and the target workflow just sets Status Reason from S1 to S2. There are Status Reason Transitions defined and that transition is of course allowed. However, the workflow randomly fails with the error above. I've researched and tried a lot of experiments, I found this is related to the workflow types. When I convert the workflow to a real-time workflow, it never fails. I don't know what the issue is with the background type workflow but I think this has something to do with asynchronous background processes. It seems like a Dynamics bug to me but I'm still not sure if my fix is a correct approach/solution. What do you think?
Thanks.