You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_posts/2021-08-16-resolve-33333-events.markdown
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,25 @@ Data Access Layer rejected retry on SqlError:
28
28
Message: Violation of PRIMARY KEY constraint 'PK_StateChangeEvent'. Cannot insert duplicate key in object 'dbo.StateChangeEvent'. The duplicate key value is (b48055d3-18f2-40f7-a0e7-a0f8bd1b44a3).
29
29
```
30
30
31
+
This Powershell Script will allow you to detect for Event ID 33333 being generated and get a count of unique Servers referenced across your OperationsManager Event Log:
# If Event 33333 found in the OperationsManager Event Log, do the below
35
+
if ($events.Message -like "*Violation of PRIMARY KEY constraint 'PK_StateChangeEvent'. Cannot insert duplicate key in object 'dbo.StateChangeEvent'. The duplicate key value is*")
"Found $($message.count) issues with the Event ID 33333 (Monitor Id: $match), see the following article:`n https://kevinholman.com/2017/05/29/stop-healthservice-restarts-in-scom-2016/"
41
+
}
42
+
```
43
+
44
+
Run the above script on each of your Management Servers in your Management Group.
45
+
31
46
I found that this correlates to this article written by Kevin Holman:
Following the steps in the article above, will resolve the issues you are having with Event ID: **33333**above.
49
+
Following the steps in the article above, will resolve the issues you are having with Event ID: **33333**`Violation of PRIMARY KEY constraint 'PK_StateChangeEvent'. Cannot insert duplicate key in object 'dbo.StateChangeEvent'.`.
35
50
36
51
<!--
37
52
Having trouble with Pages? Check out our [documentation](https://docs.github.com/categories/github-pages-basics/) or [contact support](https://support.github.com/contact) and we’ll help you sort it out.
0 commit comments