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:
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):
Thank you so much, deactivating the 'Use enhanced background processing' and reactivating it worked!
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,782 Super User 2024 Season 2
Martin Dráb 229,067 Most Valuable Professional
nmaenpaa 101,150