Hello Dynamics Community,
we are trying to set the status to Active in any agreement of Dynamics 365 field service, however when trying to save an error occurs with the message:
Workflow must be in Published state.
After checking, no relevant Workflow is inactive. No solution like deactivating and reactivating helped.
We want to find out on what point the error is generated.
Here is the full protocol:
Exception Message: Workflow must be in Published state.
ErrorCode: -2147220891
HexErrorCode: 0x80040265
ErrorDetails:
ApiExceptionSourceKey: Plugin/Microsoft.Crm.ObjectModel.WorkflowService
ApiStepKey: 46f6cf4c-14ae-4f1e-98a1-eae99a37e95c
ApiDepthKey: 3
ApiActivityIdKey: 00eb59c1-6d3a-4cc2-9f5e-a39b44534c95
ApiPluginSolutionNameKey: System
ApiStepSolutionNameKey: System
ApiExceptionCategory: ClientError
ApiExceptionMesageName: ExecuteUnpublishedWorkflow
ApiExceptionHttpStatusCode: 400
OperationStatus: 0
SubErrorCode: -2146233088
TraceText:
[Microsoft.Dynamics.FieldService: Microsoft.Dynamics.FieldService.FieldServicePlugin]
[f5f1291f-596a-4ee3-bce2-6b9217ec39cf: Field Service: Update (post-operation) for msdyn_agreement]
[Microsoft.Dynamics.FieldService: Microsoft.Dynamics.FieldService.FieldServicePlugin]
[58f86a7c-da6a-40d5-bdb9-634e2d82291a: Field Service: Update (post-operation) for msdyn_agreementinvoicesetup]
[Microsoft.Crm.ObjectModel: Microsoft.Crm.Extensibility.InternalOperationPlugin]
[46f6cf4c-14ae-4f1e-98a1-eae99a37e95c: ExecuteWorkflowWithInputArguments]
Aktivitäts-ID: 6cbf74a2-b068-44e4-b874-6f75c03be9d0
It does not save or generate a work order.
We already checked the following actions (German):
msdyn_agreement / Field Service - Arbeitsaufträge abbrechen
msdyn_agreementbookingdate / Field Service - Arbeitsauftrag für Vereinbarungsbuchungsdatum generieren
msdyn_agreementbookingincident / Field Service - Status von Vereinbarungsbuchungsvorfall-Elementen aktualisieren
msdyn_agreementbookingincident / Field Service - Vorfallselemente in Vereinbarung kopieren
msdyn_agreementbookingsetup / Field Service - Vereinbarungsbuchungszeitraum generieren
msdyn_agreementinvoicedate / Field Service - Rechnung für Vereinbarungsrechnungsdatum generieren
msdyn_agreementinvoicesetup / Field Service - Vereinbarungsrechnungszeitraum generieren
msdyn_fieldservicesetting / Field Service - Eindeutige Nummern für Field Service löschen
msdyn_incidenttypessetup / Field Service – wiederkehrende Berechnungen
msdyn_orderinvoicingdate / Field Service - Rechnung für Auftragsrechnungsdatum generieren
msdyn_orderinvoicingsetup / Field Service - Auftragsrechnungssetupdaten generieren
msdyn_quotebookingincident / Field Service - Vorfallselemente in Angebotsbuchung kopieren
msdyn_workorder / Field Service - Arbeitsauftragsproduktjournale erstellen
msdyn_workorderincident / Field Service - Status von Arbeitsauftragsvorfall-Elementen aktualisieren
msdyn_workorderincident / Field Service - Vorfallselemente in Arbeitsauftrag kopieren
salesorder / Field Service - Auftragsrechnungsdaten generieren