SQL Server 2012 Developer SQL Server 2012 Enterprise SQL Server 2012 Standard More…Less
Symptoms
Assume that you have a database backup that contains a sequence object that is created by using the cache option in Microsoft SQL Server 2012. Then, you try to restore a database from the backup. In this situation, you may receive the following error message:
SQL Error 2627:
Violation of UNIQUE KEY constraint ‘%.*ls’. Cannot insert duplicate key in object ‘%.*ls’.
Cause
This issue occurs because the cached sequence is flushed incorrectly when you perform the database backup. This makes the value of the cached sequence larger than the value on the disk. In this situation, error 2627 is triggered.
Resolution
Cumulative update information
Cumulative Update 4 for SQL Server 2012 Service Pack 1
The fix for this issue was first released in Cumulative Update 4. For more information about how to obtain this cumulative update package for SQL Server 2012 Service Pack 1, click the following article number to view the article in the Microsoft Knowledge Base:
2833645 Cumulative update package 4 for SQL Server 2012 Service Pack 1Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 Service Pack 1 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2772858 The SQL Server 2012 builds that were released after SQL Server 2012 Service Pack 1 was released
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the «Applies to» section.
Need more help?
Содержание
- KB2842651 — FIX: Error 2627 when you restore a database from backup in SQL Server 2012
- Symptoms
- Cause
- Resolution
- Cumulative update information
- Cumulative Update 4 for SQL Server 2012 Service Pack 1
- Status
- KB2842651 — FIX: Error 2627 при восстановлении базы данных из резервной копии в SQL Server 2012
- Проблемы
- Причина
- Решение
- Сведения о накопительном пакете обновления
- Накопительное обновление 4 для SQL Server 2012 с пакетом обновления 1 (SP1)
- Статус
- SQL error 2627- How to fix it
- What causes the SQL error 2627?
- How to fix the SQL error 2627?
- Conclusion
- PREVENT YOUR SERVER FROM CRASHING!
- Sql error 2627 insert
- Answered by:
- Question
- Answers
- Sql error 2627 insert
- Answered by:
- Question
KB2842651 — FIX: Error 2627 when you restore a database from backup in SQL Server 2012
Symptoms
Assume that you have a database backup that contains a sequence object that is created by using the cache option in Microsoft SQL Server 2012. Then, you try to restore a database from the backup. In this situation, you may receive the following error message:
SQL Error 2627:
Violation of UNIQUE KEY constraint ‘%.*ls’. Cannot insert duplicate key in object ‘%.*ls’.
Cause
This issue occurs because the cached sequence is flushed incorrectly when you perform the database backup. This makes the value of the cached sequence larger than the value on the disk. In this situation, error 2627 is triggered.
Resolution
Cumulative update information
Cumulative Update 4 for SQL Server 2012 Service Pack 1
The fix for this issue was first released in Cumulative Update 4. For more information about how to obtain this cumulative update package for SQL Server 2012 Service Pack 1, click the following article number to view the article in the Microsoft Knowledge Base:
2833645 Cumulative update package 4 for SQL Server 2012 Service Pack 1Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2012 Service Pack 1 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2772858 The SQL Server 2012 builds that were released after SQL Server 2012 Service Pack 1 was released
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the «Applies to» section.
Источник
KB2842651 — FIX: Error 2627 при восстановлении базы данных из резервной копии в SQL Server 2012
Проблемы
Предположим, что у вас есть резервная копия базы данных, содержащая объект последовательности, созданный с помощью параметра Cache в Microsoft SQL Server 2012. Затем вы пытаетесь восстановить базу данных из резервной копии. В этом случае может появиться следующее сообщение об ошибке:
Ошибка SQL 2627: нарушение УНИКАЛЬного ограничения ключа «%. * ls». Не удается вставить повторяющийся ключ в объект «%. * ls».
Причина
Эта проблема возникает из-за неправильной очистки кэшированной последовательности при выполнении резервного копирования базы данных. Это делает значение кэшированной последовательности больше значения на диске. В этой ситуации ошибка 2627 вызывается.
Решение
Сведения о накопительном пакете обновления
Накопительное обновление 4 для SQL Server 2012 с пакетом обновления 1 (SP1)
Исправление для этой проблемы впервые выпущено в накопительном обновлении 4. За дополнительными сведениями о том, как получить этот накопительный пакет обновления для SQL Server 2012 с пакетом обновления 1 (SP1), щелкните следующий номер статьи базы знаний Майкрософт:
2833645 Накопительный пакет обновления 4 для SQL Server 2012 с пакетом обновления 1 (SP1)Примечание. Поскольку сборки являются кумулятивными, каждый новый набор исправлений содержит все исправления и все исправления для системы безопасности, которые были включены в предыдущий выпуск исправлений для SQL Server 2012 с пакетом обновления 1 (SP1). Рекомендуется установить последнюю версию исправления, которая включает это исправление. Дополнительные сведения см. в следующей статье базы знаний Майкрософт:
2772858 Сборки SQL Server 2012, выпущенные после выпуска пакета обновления 1 (SP1) для SQL Server 2012
Статус
Корпорация Майкрософт подтверждает наличие этой проблемы в своих продуктах, которые перечислены в разделе «Применяется к».
Источник
SQL error 2627- How to fix it
by Arya MA | Jul 1, 2020
SQL error 2627 is a common error that triggers during database restorations. It generally happens when the backup file contains a sequence object that is created by using the cache option in Microsoft SQL Server 2012
As a part of our Server Management Services, we help our Customers to fix SQL related errors regularly.
Let us today discuss the possible causes and fixes for this error.
What causes the SQL error 2627?
The SQL error 2627 triggers commonly on tables that contain PRIMARY KEY constraint. Whenever we try to insert a new record into such tables and the key of the record being inserted already exists in the table, it triggers the 2627 error.
It generally happens when the cached sequence created by the cache option in Microsoft SQL Server 2012 is flushed incorrectly during the database backup. This makes the value of the cached sequence larger than the value on the disk.
Thus when restoring the database with that backup, it shows the error message:
Another possible reason for it can be a bug in the spool and spool is generating more than expected rows. Let us now look into the steps to fix the violation of primary key constraint error.
How to fix the SQL error 2627?
To fix SQL Server Error 2627 you can use the Cumulative Update 4. It is recommended that you should use the most recent cumulative update that contains the hotfix.
Another possible fix would be to find the duplicate records in the database and remove them. We would need to use an SQL query for this purpose. The exact query to be used varies based on each scenario. For instance, a simple query to find if duplicates exist in a table would be:
To display each of the duplicate rows, the format to be used would be:
The exact format of the query to be used varies based on the parameters in the table. Once the duplicate entry is identified, we can manually delete the duplicate ones using SQL Server Management Studio.
At times these steps may not help to fix the error completely and the violation error of the primary key constraint may remain the same. It happens only if the indexes were not created properly. In this situation, we need a backup plan of the database to restore the data.
Also, it is important to not rename an existing table as a backup of tables as this will leave the indexes in place which will prevent the recreation of the indexes during restoration.
[Need help to fix SQL errors? We are available 24×7]
Conclusion
In short, the SQL error 2627 triggers during database restorations when the backup file contains a sequence object that is created by using the cache option in Microsoft SQL Server 2012. Today we saw how our Support Engineers fix this error.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
Источник
Sql error 2627 insert
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:
Question
hello,
I noticed I have some of those erros on my PS_DBagaent_system_log
2009-08-25 21:54:58 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint ‘PK_GuildChars’. Cannot insert duplicate key in object ‘dbo.GuildChars’., SQL STATE: 23000, NATIVE ERROR: 2627 (0xA43)
2009-08-25 21:54:58 DBGuild::CreateChatacter Failed 211, qerr=-1, EXEC usp_Create_GuildChar_E 6, 211, 0
2009-08-26 02:03:21 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint ‘PK_CharApplySkills’. Cannot insert duplicate key in object ‘dbo.CharApplySkills’., SQL STATE: 23000, NATIVE ERROR: 2627 (0xA43)
2009-08-26 02:03:21 ::SaveCharacter 478 Wind ret=-1, qerr=-1,
2009-08-26 14:33:26 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint ‘PK_CharSavePoint’. Cannot insert duplicate key in object ‘dbo.CharSavePoint’., SQL STATE: 23000, NATIVE ERROR: 2627 (0xA43)
2009-08-26 14:33:26 InsertSavePoint qerr=-1, EXEC usp_Create_Char_SavePoint 1686,1,2,843.802917,39.217873,1771.947388
2009-08-26 14:33:26 ::SaveCharacter 1686 [GS]Kira ret=1, qerr=-1, EXEC usp_Create_Char_SavePoint 1686,1,2,843.802917,39.217873,1771.947388
im running a online Game with SQL 2005 enterprise, I hope someone can tell me how fix it, I already fix a big problem with the help of Jhonatan here 😀 now this website is my idol 😀
Answers
Looks like the table is designed in such a way that the field must have only unique values. The answer to your question depends on where is the duplicate coming from. Is the key an identity field? Is it being generated in the SP or it’s being passed as a parameter? We want to understand what part of your code is generating the unique values so we need more details.
Varsham Papikian, New England SQL Server User Group Executive Board, USA
New England SQL Server User Group; My LinkedIn page
Please remember to click the «Mark as Answer» button if a post helps you!
Hi Hetan,
There are some Primary Key issues in this 2 tables.
1) ‘dbo.CharApplySkills’
2) ‘dbo.CharSavePoint’
I think there may be 2 solutions :
1st : Identifying how duplicate data is coming to both the tables. Ideally it should not come.
2nd : If not identified. Try removing : the primary key constraint.
1st solution is recommended.
Please Vote & «Mark As Answer» if this post is helpful to you.
Please give us the table structure of 2 tables.
1) ‘dbo.CharApplySkills’
2) ‘dbo.CharSavePoint’
Please Vote & «Mark As Answer» if this post is helpful to you.
I checked the package and I see that it doesn’t have the code piece we need.
Right click on the database, choose Tasks and then Generate Scripts. Follow the wizard. Just script the whole database (tables, indexes, SPs. ).
Then post the code.
Thanks,
Varsham Papikian, New England SQL Server User Group Executive Board, USA
New England SQL Server User Group; My LinkedIn page
Please remember to click the «Mark as Answer» button if a post helps you!
I did some troubleshooting. Here is the result:
I see three errors: in all cases you have a primary key defined for a table (single column one or a multiple column one) and your Stored Procedures try to insert duplicate rows.
The values for the keys are NOT generated inside your Stored Procedures so the SPs are not responsible for the error.
Resolution: you have to check the code (app code?) which is specifying the input parameters for the SPs and check the logic there. I am assuming that the Primary Keys are defined ‘right’ and the column/s values in the PK have to be unique for the application to work properly. How is the application making sure that it doesn’t specify ‘bad’ input param values when calling the SPs?
Your application could catch this specific type of error (dup values) and do something with it. Or you could do some extra checking in the SPs.
You could do other improvements too: for example ISNULL in ISNULL(count(*), 0) is redundant since the result of count(*) is never NULL (even if there is no qualifying row).
1.
SP used: usp_Create_GuildChar_E
Updates the table: GuildChars
Primary key [PK_GuildChars] on [GuildID],[CharID]
Call: usp_Create_GuildChar_E 6, 211, 0
Fail reason: a row where [GuildID]=6 and [CharID]=211 already exists so INSERT conflicts with Primary key [PK_GuildChars].
2.
SP used: usp_Save_Char_ApplySkill_Add_E
Updates the table: CharApplySkills
Primary key [PK_CharApplySkills] on [CharID],[SkillID]
Call: Usp_Save_Char_ApplySkill_Add_E 478,30,3,300
Fail reason: a row where [CharID]=478 and [SkillID]=30 already exists so INSERT conflicts with Primary key [PK_CharApplySkills].
3.
SP used: [usp_Create_Char_SavePoint]
Updates the table: CharSavePoint
Primary key [PK_CharSavePoint] on [CharID]
Call: usp_Create_Char_SavePoint 1686,1,2,843.802917,39.217873,1771.947388
Fail reason: a row where [CharID]=1686 already exists so INSERT conflicts with Primary key [PK_CharSavePoint].
Hope this was useful for you and you can identify the core issue and improve the application.
Varsham Papikian, New England SQL Server User Group Executive Board, USA
New England SQL Server User Group; My LinkedIn page
Please remember to click the «Mark as Answer» button if a post helps you!
Источник
Sql error 2627 insert
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:
Question
On SQL Server 2000, a transaction of thousands of INSERTs contains these three consecutive INSERT statements:
INSERT INTO PARAMETER_ATTRIBUTES ( ID , MIN_VALUE , MAX_VALUE )
VALUES ( ’05b3b88a-f0f2-4e7e-a82f-73a7bd177a96′ , 0 , 1 )
INSERT INTO PARAMETER_ATTRIBUTES ( ID , MIN_VALUE , MAX_VALUE )
VALUES ( ’05e51bee-ac3b-4257-90f1-f34adcb185cb’ , 0 , 128 )
INSERT INTO PARAMETER_ATTRIBUTES ( ID , MIN_VALUE , MAX_VALUE )
VALUES ( ’05f33ded-979b-41ee-9d6c-ac5adc4d8635′ , — 1000000000 , 1000000000 )
The transaction fails with a Msg 2627 error, Violation of PRIMARY KEY constraint ‘ARR_Constraint2’. Cannot insert duplicate key in object ‘PARAMETER_ATTRIBUTES’. SQL Profiler reveals that the last statement executed is the second INSERT.
The primary key is on the ID column. What is particularly significant is that before running the transaction, this query returns no rows:
select * from PARAMETER_ATTRIBUTES
where id in (
’05b3b88a-f0f2-4e7e-a82f-73a7bd177a96′ , — pk value in first insert
’05e51bee-ac3b-4257-90f1-f34adcb185cb’ , — pk value in second insert
’05f33ded-979b-41ee-9d6c-ac5adc4d8635′ ) — pk value in third insert
In other words, all three INSERTs contain primary key values that do not exist in the table. As you can see, each INSERT is inserting a unique value for the primary key. I am asserting that there are no duplicates. How can the fact of a Msg 2627 error be reconciled with the facts of no duplicates? Can SQL Profiler not be trusted to show the specific statement causing a duplicate key problem? In other words, in a transaction of 1000s of statements, does a dup key problem cause SQL Profiler to stop before it displays the statement causing the error?
Источник
- Remove From My Forums
-
Question
-
hello,
I noticed I have some of those erros on my PS_DBagaent_system_log2009-08-25 21:54:58 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint ‘PK_GuildChars’. Cannot insert duplicate key in object ‘dbo.GuildChars’., SQL STATE: 23000, NATIVE ERROR: 2627 (0xA43)
2009-08-25 21:54:58 DBGuild::CreateChatacter Failed 211, qerr=-1, EXEC usp_Create_GuildChar_E 6, 211, 0
2009-08-26 02:03:21 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint ‘PK_CharApplySkills’. Cannot insert duplicate key in object ‘dbo.CharApplySkills’., SQL STATE: 23000, NATIVE ERROR: 2627 (0xA43)
2009-08-26 02:03:21 ::SaveCharacter 478 Wind ret=-1, qerr=-1, {?=call Usp_Save_Char_ApplySkill_Add_E(478,30,3,300)}
2009-08-26 14:33:26 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint ‘PK_CharSavePoint’. Cannot insert duplicate key in object ‘dbo.CharSavePoint’., SQL STATE: 23000, NATIVE ERROR: 2627 (0xA43)
2009-08-26 14:33:26 InsertSavePoint qerr=-1, EXEC usp_Create_Char_SavePoint 1686,1,2,843.802917,39.217873,1771.947388
2009-08-26 14:33:26 ::SaveCharacter 1686 [GS]Kira ret=1, qerr=-1, EXEC usp_Create_Char_SavePoint 1686,1,2,843.802917,39.217873,1771.947388
im running a online Game with SQL 2005 enterprise, I hope someone can tell me how fix it, I already fix a big problem with the help of Jhonatan here now this website is my idol
thanks
Answers
-
Looks like the table is designed in such a way that the field must have only unique values. The answer to your question depends on where is the duplicate coming from. Is the key an identity field? Is it being generated in the SP or it’s being passed as a parameter? We want to understand what part of your code is generating the unique values so we need more details.
Thanks,
Varsham Papikian, New England SQL Server User Group Executive Board, USA
New England SQL Server User Group;
My LinkedIn page
Please remember to click the «Mark as Answer» button if a post helps you!-
Marked as answer by
Thursday, August 27, 2009 9:03 AM
-
Marked as answer by
-
Hi Hetan,
There are some Primary Key issues in this 2 tables…1) ‘dbo.CharApplySkills’
2) ‘dbo.CharSavePoint’I think there may be 2 solutions :
1st : Identifying how duplicate data is coming to both the tables. Ideally it should not come.
2nd : If not identified… Try removing : the primary key constraint.1st solution is recommended.
Please Vote & «Mark As Answer» if this post is helpful to you.
Cheers
Bikash Dash
MCDBA/MCITP-
Edited by
Bikash Dash
Thursday, August 27, 2009 5:38 AM -
Marked as answer by
Hetan
Thursday, August 27, 2009 9:03 AM
-
Edited by
-
Please give us the table structure of 2 tables.
1) ‘dbo.CharApplySkills’
2) ‘dbo.CharSavePoint’Please Vote & «Mark As Answer» if this post is helpful to you.
Cheers
Bikash DashMCDBA/MCITP
-
Marked as answer by
Hetan
Thursday, August 27, 2009 9:03 AM
-
Marked as answer by
-
I checked the package and I see that it doesn’t have the code piece we need.
Right click on the database, choose Tasks and then Generate Scripts. Follow the wizard. Just script the whole database (tables, indexes, SPs…).
Then post the code.
Thanks,
Varsham Papikian, New England SQL Server User Group Executive Board, USA
New England SQL Server User Group;
My LinkedIn page
Please remember to click the «Mark as Answer» button if a post helps you!-
Marked as answer by
Hetan
Thursday, August 27, 2009 8:33 PM
-
Marked as answer by
-
I did some troubleshooting. Here is the result:
I see three errors: in all cases you have a primary key defined for a table (single column one or a multiple column one) and your Stored Procedures try to insert duplicate rows.
The values for the keys are NOT generated inside your Stored Procedures so the SPs are not responsible for the error.Resolution: you have to check the code (app code?) which is specifying the input parameters for the SPs and check the logic there. I am assuming that the Primary Keys are defined ‘right’ and the column/s values in the PK have to be unique for the application to work properly. How is the application making sure that it doesn’t specify ‘bad’ input param values when calling the SPs?
Your application could catch this specific type of error (dup values) and do something with it. Or you could do some extra checking in the SPs.
You could do other improvements too: for example ISNULL in ISNULL(count(*), 0) is redundant since the result of count(*) is never NULL (even if there is no qualifying row).More details:
1.
SP used: usp_Create_GuildChar_E
Updates the table: GuildChars
Primary key [PK_GuildChars] on [GuildID],[CharID]
Call: usp_Create_GuildChar_E 6, 211, 0
Fail reason: a row where [GuildID]=6 and [CharID]=211 already exists so INSERT conflicts with Primary key [PK_GuildChars].2.
SP used: usp_Save_Char_ApplySkill_Add_E
Updates the table: CharApplySkills
Primary key [PK_CharApplySkills] on [CharID],[SkillID]
Call: Usp_Save_Char_ApplySkill_Add_E 478,30,3,300
Fail reason: a row where [CharID]=478 and [SkillID]=30 already exists so INSERT conflicts with Primary key [PK_CharApplySkills].3.
SP used: [usp_Create_Char_SavePoint]
Updates the table: CharSavePoint
Primary key [PK_CharSavePoint] on [CharID]
Call: usp_Create_Char_SavePoint 1686,1,2,843.802917,39.217873,1771.947388
Fail reason: a row where [CharID]=1686 already exists so INSERT conflicts with Primary key [PK_CharSavePoint].Hope this was useful for you and you can identify the core issue and improve the application.
Thanks,
Varsham Papikian, New England SQL Server User Group Executive Board, USA
New England SQL Server User Group;
My LinkedIn page
Please remember to click the «Mark as Answer» button if a post helps you!-
Marked as answer by
Hetan
Friday, August 28, 2009 10:13 AM
-
Marked as answer by
-
Did the application work before as a whole or you are just starting to develop it? If we assume that the back-end design is ‘right’ then you need to check the module which calls the SPs and make sure it doesn’t pass values which conflict with the primary keys.
As you see, the answers are starting to depend on many internal details in your application. Not that I don’t want to continue, but you need to formalize the questions a little bit better so that we have enough info for answering without going into the application details
Thanks,
Varsham Papikian, New England SQL Server User Group Executive Board, USA
New England SQL Server User Group;
My LinkedIn page
Please remember to click the «Mark as Answer» button if a post helps you!-
Marked as answer by
Hetan
Friday, August 28, 2009 9:33 PM
-
Marked as answer by
|
Dear All,
The issue has been resolved.
It turns out that
MPSwere queued awaiting synchronization.
The SQL query below will enable you to find the MPs that are pending.
SELECT
ManagementPackId, MPFriendlyName,MPName, mp.MPVersionDependentId, MPLastModified, MPKeyToken, ContentReadable
FROM ManagementPack mp
WHERE MPVersionDependentId
NOT IN
(SELECT mpv.ManagementPackVersionDependentGuid
FROM OperationsMAnagerDW.dbo.ManagementPackVersion mpv
JOIN OperationsMAnagerDW.dbo.ManagementGroupManagementPackVersion mgmpv
ON (mpv.ManagementPackVersionRowId = mgmpv.ManagementPackVersionRowId)
WHERE (mgmpv.LatestVersionInd > 0))
AND NOT EXISTS
(SELECT * FROM ManagementPackReferences mpr
JOIN ManagementPack mpv
ON (mpr.ManagementPackIdSource = mpv.ManagementPackId)
WHERE (mpr.ManagementPackIdReffedBy = mp.ManagementPackId)
AND (mpv.MPVersionDependentId NOT IN
(SELECT mpv.ManagementPackVersionDependentGuid
FROM OperationsMAnagerDW.dbo.ManagementPackVersion mpv
JOIN OperationsMAnagerDW.dbo.ManagementGroupManagementPackVersion mgmpv
ON (mpv.ManagementPackVersionRowId = mgmpv.ManagementPackVersionRowId)
WHERE (mgmpv.LatestVersionInd > 0))))
Once the problematic MPs have been found , follow the procedures below to reolve the issue
We need to trigger sync manually. So please find following steps to
starting at the top of the list, export the MP, and update the version attribute and reimport.
This will force that MP to resynchronize. Once all the MPs that are blocking synchronization have been updated, then all the other ones will update automatically
Export MPs
For the unsealed MPs, please right click the MP in the SCOM console then export them as xml files.
For sealed MPs, you can use following link and command to export as xml files
http://blogs.technet.com/b/jonathanalmquist/archive/2009/03/30/export-a-management-pack.aspx
Open the XML, Update the version attribute then save the files:
For example:
<Identity>
<ID>Mpname<ID>
<Version>1.0.0.3</Version>
</Identity>
We increase the version to 1.0.0.4.
- Right click “management pack”, reimport the XML files.
- After reimporting all MPs in the query list, check whether we can get the service level object from report.
Note: Most of the MPs listing in the qurey result are customized MPs and will not have any impact.
For these Microsoft sealed MPs, the solution will impact following
aspects:
a. the sealed MP will be changed to unsealed b. it cannot auto
update if new version of this MPs are released.
Hope this helps whoever i facing teh same issue as I did.