Saturday, November 19, 2016

workflow must be in published state error message while saving Case record in Dynamics CRM 2016 online

while working on dynamics crm 2016 online I got below error while saving case record.
"workflow must be in published state". once download the message I got below

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Workflow must be in Published state.Detail:
<OrganizationServiceFault xmlns:i="" xmlns="">
  <ErrorDetails xmlns:d2p1="">
      <d2p1:value xmlns:d4p1="" i:type="d4p1:string">Workflow must be in Published state.</d2p1:value>
      <d2p1:value xmlns:d4p1="" i:type="d4p1:string">workflowId</d2p1:value>
  <Message>Workflow must be in Published state.</Message>
  <ExceptionSource i:nil="true" />
  <InnerFault i:nil="true" />
  <OriginalException i:nil="true" />
[Microsoft.Crm.Service.ObjectModel: Microsoft.Crm.Service.ObjectModel.CasePostCreatePlugin]
[ffde44b1-a685-4948-85b8-e4091bc2a98b: CasePostCreatePlugin]
                [Microsoft.Crm.ObjectModel: Microsoft.Crm.Extensibility.InternalOperationPlugin]
                [46f6cf4c-14ae-4f1e-98a1-eae99a37e95c: ExecuteWorkflowWithInputArguments]
strange, I activated all workflows, business process, still same issue.
then I deleted all (taken back up) 1st, still same issue.
then I just though to see anything related to case, I landed to SLA.
I just deactivated, then I was able to save Case record.
even then I activated SLA, also I was able to save.

SO JUST deactivate and activate again is the solution. but do not know why?