scottdurow / RibbonWorkbench

Ribbon Workbench 2016 for Dynamics 365
https://ribbonworkbench.uservoice.com/
MIT License
72 stars 24 forks source link

Run Workflow SmartButton does not run for all selected records #80

Open Yocomd opened 3 years ago

Yocomd commented 3 years ago

I'm seeing an issue with the Run Workflow Smart Button where it does not run the workflow for all selected records. If I select 50 records, the "working" UI shows it counting through the records, but it rarely completes all 50 records. Sometimes it will stop after 1, sometimes after 15 or 20. There is no error and if I look at System Jobs, it has stopped running and definitely didn't run for all records.

If I use the standard Dynamics "Flow" button and select the specific workflow, it will run fine for all 50 records, so doesn't seem to be an issue with the workflow (and even if it were, I'd expect it to either continue with the next record or show an error).

scottdurow commented 3 years ago

Hi - could you press F12 and monitor the network tab to see if there are any failed requests and inspect the response to see the error?

Yocomd commented 3 years ago

There is a 404 error that does occur right before the loop stops.

{"error":{"code":"0x80040217","message":"asyncoperation With Id = 3ed6b8a7-7ccf-eb11-bacf-001dd801c1b2 Does Not Exist","@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionSourceKey":"Plugin/Microsoft.Crm.ObjectModel.AsyncOperationService","@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepKey":"88cbbb1b-ea3e-db11-86a7-000a3a5473e8","@Microsoft.PowerApps.CDS.ErrorDetails.ApiDepthKey":"1","@Microsoft.PowerApps.CDS.ErrorDetails.ApiActivityIdKey":"b4050667-6f10-4e9b-8b05-ba651a293065","@Microsoft.PowerApps.CDS.ErrorDetails.ApiPluginSolutionNameKey":"System","@Microsoft.PowerApps.CDS.ErrorDetails.ApiStepSolutionNameKey":"System","@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionCategory":"ClientError","@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionMessageName":"ObjectDoesNotExist","@Microsoft.PowerApps.CDS.ErrorDetails.ApiExceptionHttpStatusCode":"404","@Microsoft.PowerApps.CDS.HelpLink":http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a80040217&client=platform,"@Microsoft.PowerApps.CDS.InnerError.Message":"asyncoperation With Id = 3ed6b8a7-7ccf-eb11-bacf-001dd801c1b2 Does Not Exist"}}

Diane Yocom SEATTLE INFORMATION TECHNOLOGY

From: Scott Durow @.> Sent: Wednesday, June 16, 2021 5:29 PM To: scottdurow/RibbonWorkbench @.> Cc: Yocom, Diane @.>; Author @.> Subject: Re: [scottdurow/RibbonWorkbench] Run Workflow SmartButton does not run for all selected records (#80)

CAUTION: External Email

Hi - could you press F12 and monitor the network tab to see if there are any failed requests and inspect the response to see the error?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://protect2.fireeye.com/v1/url?k=c323bbe5-9cb882d7-c3239355-8697e44c76c2-5b1b9358c6b3ba8f&q=1&e=90c691b5-fac7-4321-91ab-5188d30c9089&u=https%3A%2F%2Fgithub.com%2Fscottdurow%2FRibbonWorkbench%2Fissues%2F80%23issuecomment-862822199, or unsubscribehttps://protect2.fireeye.com/v1/url?k=4a91377f-150a0e4d-4a911fcf-8697e44c76c2-40fdf8393e145bee&q=1&e=90c691b5-fac7-4321-91ab-5188d30c9089&u=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAOAHA5RKZKWHVDZHOCJSTNLTTE6UVANCNFSM462L7BJQ.