Hi
I have a workflow which updates a field in another related entity from the Opportunity when it is closed as won. However, the workflow just hangs on waiting and never completes. Can anyone help.
Hi
I have a workflow which updates a field in another related entity from the Opportunity when it is closed as won. However, the workflow just hangs on waiting and never completes. Can anyone help.
HI,
Try adding wait condition for 1-2 minutes before updating the record.
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
Hi Bipin
Thanks for your help so far. It didn't work changing the workflow to run in the background and unfortunately I can not add a trigger from the Opportunity Close entity as I don't access to that on the create Process Screen
Thanks I will try that thanks
Hi,
Update your workflow to run in background instead of Real time workflow. If changing mode to async does not work then you should trigger your workflow on Opportunity close entity.
community.dynamics.com/.../264161
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
Hi Bipin
the full message is:
Plugin Trace:
[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.UpdateEntity]
[UpdateStep4]
Error Message:
Unhandled Exception: Microsoft.Crm.CrmException: Cannot find record to be updated
at Microsoft.Crm.Workflow.Services.UpdateActivityService.Execute(ActivityContext executionContext, UpdateEntity updateEntity)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Hi,
Could you please entire error message starting from Plugin Trace:?
Also, please check if you have any workflow/plugin which is throwin this error.
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
Hi Bipin
Attached is the screenshot how can it not find the record. I don't understand
HI,
Can you please open the process session record to see the error details of your workflow run?
Please share the error details. You will see the error message under details->Message as highlighted in below image
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: xrmdynamicscrm.wordpress.com/
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,558 Super User 2024 Season 2
Martin Dráb 228,647 Most Valuable Professional
nmaenpaa 101,148