Skip to main content

Notifications

Dynamics 365 Community / Forums / Field Service forum / Workflow must be in Pu...
Field Service forum
Answered

Workflow must be in Published state.

Posted on by 10

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.

Fehlercode: 0x80040265
Sitzungs-ID: d07dd7ce-4038-4499-8709-d6689beb0b17
Aktivitäts-ID: 3d49b9d3-c565-46e1-9666-4515570e54a3
Uhrzeit: Wed Apr 14 2021 12:13:58 GMT+0200 (Mitteleuropäische Sommerzeit)

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):

bookableresourcebooking / Field Service - Arbeitsauftragselemente zu Buchung zuordnen
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
Everything seems to be alright there.
If anyone has an idea where our process is stuck we would be glad if you coud answer.
Thanks!
  • Mirell Profile Picture
    Mirell 10 on at
    RE: Workflow must be in Published state.

    Thank you so much, deactivating the 'Use enhanced background processing'  and reactivating it worked!

  • Verified answer
    dian74 Profile Picture
    dian74 2,473 Most Valuable Professional on at
    RE: Workflow must be in Published state.

    In the Field Service App please navigate to Settings>Field Service Settings. Have you set the 'Use enhanced background processing' to yes on the Field Service settings page? (under other). If this is the case then it's talking about Power Automate flows that might be turned off. I would suggested going into flows.microsoft.com and seeing if any of the related flows are turned off.

    PLEASE MARK THIS AS SUGGESTED ANSWER IF HELPFUL

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,782 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,067 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,150

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans