Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
we have a workflow for Purchase order approval. workflow is configured with simply (Start --> PO Approval User Group --> End).
It was working fine since yesterday. suddenly, it's showing the status as "Pending" for long time.
If we see the Batch "Workflow message processing task" is executing for a long time.
we have not done any changes in the workflow. but, suddenly its behaving like this.
Hi, if it is a development or a testing VM, restart the whole virtual machine. This was the only way that helped me in a similar situation.
Hi Muthusamy V,
Can you check the batch groups and whether they have batch servers assigned? Maybe somebody changed that? If this does not help then try restarting your machine. I noticed that this is related to the USMF demo company, which should allow you making a restart without intervening a live application.
Restarting VM or restarting batch service would be quickest way to resolve but also check the DTU of that machine and see if other batch jobs are also stuck.
What exactly do you mean with running a long time? The screenshot is not showing the elapsed time. Do you know if there was a maintenance or package deployment? Have you checked the environment monitoring to see if there are long running SQL tasks or even SQL blocks? Can you tell how many workflow tasks are pending?
Good Morning Muthusamy V,
There have been a number of responses and suggestions provided.
Do you have an update for us?
Have you been able to get this resolved in the meantime?
This is kind of development VM. But, we are using only for testing purpose (not doing any development).
Other workflows are working fine. Only Purchase order workflows shows executing for a long time.
Workflows shows more than a day as elapsed time. Refer. Screen shot below..
I have restarted the machine. But no luck.
Also, I have tried to debug the code SysWorkflowQueueTask Class. But not able to identify exactly where this execution takes long time.
In Batch groups, servers are mapped correctly and its working fine. We have identified that, issue is only with Purchase order workflow. Other workflows are working fine.
How to check that, where its getting executed for a long time? Because, I have tried to check in event log, but there is no other information related to that issue. Looks issue is with workflow message processing task. This is the task shows executing for long time.
Is the workflow already assigned to a user? Isn't it the user interaction where this workflow instance is waiting for?
Yes, Workflow is assigned to the user group. Its says all users are completed after the approval (Configured with Single user approval).
Actually, we found that there is a customization to confirm the Purchase order automatically after the PO workflow approval.
Then, we have commented that code and workflow is getting approved. now, we are doing PO confirmation by using PO confirm button.
There is something wrong in the auto confirmation code. That has to be checked.
Thanks for the feedback. Do you have any additional questions?
I am okay now. No more questions to this thread.
Thanks for all your suggestions..
Business Applications communities