Because of different issues (e.g. missing some account in the PrivUserGroup) , you might find in your CRM system (this experience is based on Dynamics CRM 4, it might be applicable to CRM 2011) that some asynchronous jobs have failed and their current state and status is “Completed-Failed”.
How can you re-active these failed asynchronous jobs?
First option (supported): If they are on demand workflows, try to re-run them again
Second option (unsopported): Change the state and status of these jobs to “Ready-Waiting For Resources”. You have to do this from CRM DBÂ using the next script:
UPDATE AsyncOperationBase
set Statecode = 0 , statuscode = 0
where asyncoperationid in
(
SELECT asyncoperationid
FROM AsyncOperationBase with (NOLOCK)
where StatusCode = 31
and CreatedOn >= ‘Start-datetime’ and CreatedOn <= ‘End-datetime’
Software Engineer specialised on Microsoft Technologies with experience in large projects for different industrial sectors as developer, consultant and architect.
I enjoy designing and developing software applications, it is my job and one of my hobbies. I’m interested in design patterns, new technologies and best practices. Making those part of the ALM process is a great challenge.
Since 2008, I have been working with Microsoft Dynamics 365 (CRM back then), the Power Platform and Azure. I customise and extend the platform to provide tailored solutions and integrations based on service-oriented architectures and messages queuing.
Motivated by community events and contributor in blogs, technical books, open source projects and forums, I was awarded Microsoft Business Applications Most Valuable Professional (MVP) for 7 years.
View all posts by Ramon Tebar