Hi,
I'm moving form SCOM 2007 r2 to 2012 r2 and doing a parallel migration (building 2012 and moving the agents/MP from 2007 r2), when I migrated the MPs to 2012 R2, I start seeing lot of 31400 error on management server when processing dynamic group membership and group is empty. But I dont see these error on 2007 r2 and the membership looks good.. I'm placing a sample error below and your help is much appreciated...
Thanks & Regards,
Manickam A.
*****************
01ae3bc1-73cb-9cb3-b262-2c7fcff84883 _CALBCFILE Drives
*****************
*****************
Log Name: Operations Manager
Source: Health Service Modules
Date: 5/6/2014 9:32:28 AM
Event ID: 31400
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: OPMMSPV03.Company.com
Description:
An exception occured processing a group membership rule. The rule will be unloaded.
Subscription ID: 0a9ee486-e708-4b17-9f19-9737a4068900
Rule ID: 1dd2a326-7158-163e-a476-09d8462c5802
Group ID: 01ae3bc1-73cb-9cb3-b262-2c7fcff84883
Group type name: UINameSpace48788f2227d54b1d8b774639e5a480af.Group
Exception: System.Data.SqlClient.SqlException (0x80131904): The variable name'@RegExPattern0' has already been declared. Variable names must be unique within a query batch or stored procedure.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.EnterpriseManagement.DataAccessLayer.SqlRetryHandler.ExecuteReader(ExecuteArguments executeArguments, QueryResults& queryResults)
at Microsoft.EnterpriseManagement.DataAccessLayer.SqlRetryHandler.Execute[T](ExecuteArguments executeArguments, RetryPolicy retryPolicy, GenericExecute`1 genericExecute)
at Microsoft.EnterpriseManagement.DataAccessLayer.SqlRetryHandler.ExecuteReader(SqlCommand sqlCommand, IList`1 prologEpilogList, IList`1 projection, QueryDefinition queryDefinition, RetryPolicy retryPolicy)
at Microsoft.EnterpriseManagement.DataAccessLayer.QueryRequest.Execute(SqlNotificationRequest sqlNotificationRequest)
at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.QueryGenerator.ExecuteSnapshotQuery(MembershipRule membershipRule, DatabaseConnection databaseConnection)
at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.ExpressionEvaluatorForSnapshot.EligibleBySnapshotResults(MembershipRule membershipRule, DatabaseConnection databaseConnection)
at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.ExpressionEvaluatorForSnapshot.GetRelationshipChangesForSnapshot(MembershipRule membershipRule, Guid groupInstanceId, Guid groupTypeId, Guid relationshipId, IList`1 groupKeyNameValuePairs,
DatabaseConnection databaseConnection)
at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.MembershipRuleEvaluator.EvaluateSnapshot(MembershipSubscription subscription, DatabaseConnection databaseConnection)
at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.MembershipRuleEvaluator.EvaluateDifference(MembershipSubscription membershipSubscription, List`1 membershipChanges, DatabaseConnection databaseConnection)
at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.MembershipRuleEvaluator.EvaluateDifference(MembershipSubscription subscription, DatabaseConnection databaseConnection)
at Microsoft.EnterpriseManagement.Mom.DatabaseQueryModules.MembershipCalculationManager.SnapshotCalculation(MembershipSubscription membershipSubscription, DatabaseConnection databaseConnection)
*****************
Thanks & Regards, Manickam A