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=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Workflow must be in Published state.Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
  <ErrorCode>-2147200953</ErrorCode>
  <ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>0</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">Workflow must be in Published state.</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>1</d2p1:key>
      <d2p1:value xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string">workflowId</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>Workflow must be in Published state.</Message>
  <Timestamp>2016-11-19T14:29:41.1347733Z</Timestamp>
  <ExceptionSource i:nil="true" />
  <InnerFault i:nil="true" />
  <OriginalException i:nil="true" />
  <TraceText>
[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]
               
               
</TraceText>
</OrganizationServiceFault>
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?


Regards,
yes.sudhashu

3 comments:

  1. Hello! Thank you so much for resolving this problem, I just had this workflow must be in published state error message while was saving Case record in Dynamics CRM erp system

    ReplyDelete
  2. In 2016 I got "workflow must be in published state", because the workflow was configured to run as a workflow template.

    ReplyDelete
  3. Hi,
    Glad I found your site, this is an eye-opener for marketers. We are proud to be a solution provider for a diversified customer database, ranging from the small, medium technology firms to the giant multinationals. Generate more revenue with email marketing, b2b marketing, list solutions & market research services. Microsoft Dynamics CRM Users Email List

    ReplyDelete