web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

MSCRMAsyncService stops unexpectedly

(0) ShareShare
ReportReport
Posted on by

 

I have a crm 4.0 installation ( rollup 9) running on an 2008 R2 server that also host the SQL . The MSCRMAsyncService keeps stopping and none of my workflow jobs are being processed . I'm new at CRM  and would like any advice re how to troubleshoot this. I have posted the event log for the service error below. The error message segment : 'Unexpected number of records affected. Expected: 1, actual: -1'    is the same each time but the GUID changes.  So it looks like the service is having problems processing data in a message queue for the system jobs but I really have no idea where to start.

I have already checked the case of the sql server name in the config database and compared it to the one for the global variable in SQL and everythingh is in uppercase so I dont think its the isse described in http://support.microsoft.com/kb/949844/en-au

 any ideas?

 

Log Name:      Application
Source:        MSCRMAsyncService
Date:          13/05/2010 8:53:43 AM
Event ID:      17411
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      PIPESQL2.pipe.local
Description:
Host PIPESQL2: failed while monitoring asynchronous operations queue. Exception: Microsoft.Crm.CrmException: PIPESQL2.MSCRMAsyncService.5afb9cf4-af4d-4f87-a5ef-b2bbd083b41d: Unexpected number of records affected. Expected: 1, actual: -1. Query: System.Data.SqlClient.SqlCommand.
   at Microsoft.Crm.Asynchronous.DataAccessSharedBase.ExecuteSqlCommand(IDbCommand command, Nullable`1 expectedAffectedRecords)
   at Microsoft.Crm.Asynchronous.QueueDataAccess.UpdateStateAndStatusInternal(Guid eventId, Int32 newState, Int32 newStatus, DateTime nextOccurrence, Boolean retryOperation, Int32 currentRetryCount, Int32 errorCode, String errorMessage, Boolean clearData, Boolean removeEvent, Int32 operationType)
   at Microsoft.Crm.Asynchronous.QueueDataAccess.UpdateStateAndStatusCommand.InternalExecute()
   at Microsoft.Crm.Asynchronous.QueuedDatabaseCommand.Execute(QueueManager queueManager)
   at Microsoft.Crm.Asynchronous.QueueManager.ExecuteAllOutstandingDatabaseOperations()
   at Microsoft.Crm.Asynchronous.QueueManager.OnDatabaseOperationTimerEvent(Object sender, ElapsedEventArgs e)
   at Microsoft.Crm.Asynchronous.Timer.TimerProcessor.ExecuteTimers(Object data)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart(Object obj)
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="MSCRMAsyncService" />
    <EventID Qualifiers="49152">17411</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2010-05-12T22:53:43.000000000Z" />
    <EventRecordID>115779</EventRecordID>
    <Channel>Application</Channel>
    <Computer>PIPESQL2.pipe.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>PIPESQL2</Data>
    <Data>Microsoft.Crm.CrmException: PIPESQL2.MSCRMAsyncService.5afb9cf4-af4d-4f87-a5ef-b2bbd083b41d: Unexpected number of records affected. Expected: 1, actual: -1. Query: System.Data.SqlClient.SqlCommand.
   at Microsoft.Crm.Asynchronous.DataAccessSharedBase.ExecuteSqlCommand(IDbCommand command, Nullable`1 expectedAffectedRecords)
   at Microsoft.Crm.Asynchronous.QueueDataAccess.UpdateStateAndStatusInternal(Guid eventId, Int32 newState, Int32 newStatus, DateTime nextOccurrence, Boolean retryOperation, Int32 currentRetryCount, Int32 errorCode, String errorMessage, Boolean clearData, Boolean removeEvent, Int32 operationType)
   at Microsoft.Crm.Asynchronous.QueueDataAccess.UpdateStateAndStatusCommand.InternalExecute()
   at Microsoft.Crm.Asynchronous.QueuedDatabaseCommand.Execute(QueueManager queueManager)
   at Microsoft.Crm.Asynchronous.QueueManager.ExecuteAllOutstandingDatabaseOperations()
   at Microsoft.Crm.Asynchronous.QueueManager.OnDatabaseOperationTimerEvent(Object sender, ElapsedEventArgs e)
   at Microsoft.Crm.Asynchronous.Timer.TimerProcessor.ExecuteTimers(Object data)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart(Object obj)</Data>
  </EventData>
</Event>

*This post is locked for comments

I have the same question (0)
  • Enrique Kristian Echevarria Gonzales Profile Picture
    20 on at

    Hello Alan.

    Do you find any solution?  Beacuse I have the same problem.

    Regards

  • Verified answer
    Community Member Profile Picture
    on at

    Sorry for late update to this post. Microsoft support suggested issue might be caused by a setting in SQL Server called "no count" which by default is not selected but when it is it can cause this problem.  referred me to KB article where this option causes a problem in Sharepoint:

    support.microsoft.com/.../318975.

    soltion was as follows :

    Open SQL Server Management Studio, right click on the SQL Server at the top of the Object Explorer tree and select Properties.  In the Server Properties dialog box select the Connections option on the left then scroll down the list of Default connection options until you get to the one "no count", if this is checked please un-check it.  Click OK then restart the SQL Server instance.

    I believe this fixed my problem.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans