Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I created a real-time workflow on Friday that was working fine. Very simple one to prevent any changes on a related page to a Work Order after going Closed-Posted or Closed-Canceled. For ease, I also created a field called Work Order Lock that gets set to Yes via a business rule when the Work Order was set to either of the Closed statuses.
The workflow is as below. To summarize: If the Work Order is locked, and a field is changed on the related form, end the process as cancelled with the message: Cannot change data of a Closed Work Order.
As mentioned, it was working fine on Friday 9/11. I came back to the task Monday to finish adding the same workflow to a couple other related forms, only to find I am now receiving this business process error:
The comments form the Process Session shows:
Sync workflow failed with error message - Unhandled exception:Exception type: Microsoft.Xrm.Sdk.InvalidPluginExecutionExceptionMessage:-- End stack trace --Exception type: System.Activities.Statements.WorkflowTerminatedExceptionMessage: Cannot change data of a Closed Work Orderat System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.ExecuteWorkflowUsingInvoker(Activity workflow, ICommonWorkflowContext context)at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.StartWorkflow(WorkflowActivationData activationData, ICommonWorkflowContext context)-- End stack trace --, error code - -2147220970
I made no changes over the weekend, but do notice that a few updates were pushed out Saturday.
If I change this to a background workflow, it triggers fine and can update fields and end with a canceled state. But, I need to to prevent the data from changing. Therefore the real-time workflow.
I duplicated the behavior on 3 other entities and 2 other environments. Additionally, I created new Real-time workflows that were triggered on the same form, not a related form to rule that out. All environments had the Saturday updates.
Can anyone help figure out what changed and how I can make the needed adjustments to get this working again?
Thank you in advance!
Confirmed as a bug.
Business Applications communities