SCOM 2019 UR2 Patch Update: SQL Script Error: There is already an object named ‘FK_MaintenanceModeStatus_BaseManagedEntity’ in the database

Nachiappan Muthukaruppan 1 Reputation point

Hi Team,

We followed old process to update UR2 on SCOM 2019.

Everything went smooth, but while we try to execute the DB Query, Got the below Error. Can we ignore this error?

Msg 2714, Level 16, State 5, Line 3934
There is already an object named ‘FK_MaintenanceModeStatus_BaseManagedEntity’ in the database.
Msg 1750, Level 16, State 1, Line 3934
Could not create constraint or index. See previous errors.

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,396 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. SChalakov 10,256 Reputation points MVP

    Hi @Nachiappan Muthukaruppan ,

    I would try to restart the related services on your management servers and then try again. This sounds like a very strange beahvior. I would also encourage you to contact Microsoft directly if restarting the SCOM related services on your management servers does not help. Maybe they have encountered similar behavior and can get you a quick fix or a workaround.


  2. Leon Laude 85,566 Reputation points

    Hi @Nachiappan Muthukaruppan ,

    May I ask why you sre not using the simplified patching (one-click-installer) instead?

    If you get an error when executing the SQL scripts, do not continue. Try re-running the script several times until it completes without errors.

    If your scripts are being blocked, you might have to shut down the services (sdk, config, and healthservice) on your management servers, to break their connection to the databases, to get a successful run, but this should be very rare in SCOM 2016 and later.

    If nothing of the above helps, I would create a support request to Microsoft.


    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,

  3. Nachiappan Muthukaruppan 1 Reputation point

    Hi Leon and Stoyan,

    MS Update: They have tested in LAB and confirmed.

    “From this behavior I can say it’s safe to determine that the new .msp files used to update to UR2 automatically import the MPs, AND automatically run the SQL script.”

    0 comments No comments

  4. SChalakov 10,256 Reputation points MVP


    so you are running the automated procedure?

    Thanks for updating us!