search cancel

Cannot enable new Patch Mgmt policies: "A software update policy already exists with this name. Please enter another name".

book

Article ID: 201124

calendar_today

Updated On:

Products

Patch Management Solution IT Management Suite

Issue/Introduction

When we tried to modify an existing Patch Management policy (under Software>Patch Management>Software Update Policies>Windows) and change the target and it will not let us save it.  There is a error message banner on the top of the policy telling "a software update policy already exists with the same name".  So while we can create new policies, it still does not let us modify certain fields.  The only way to modify the assigned targets is to right-click the policy in the folder/tree and click Actions>Retarget and re-add all the existing targets plus any new ones we want.

When the policy is created or an existing one, when you try to edit it and enable it/save it/etc. and it gives you an error 'A software update policy already exists with this name. Please enter another name.', but there isn't another one.  You can only enable it if you right-click the policy and say Enable.  But it does not let you modify anything about it and then save it prior to that without the error, even after you renamed it and you still get the same error.

Steps:

  1. Have a PM policy enabled (located in the default location of Software>Patch Management>Software Update Policies>Windows). 
  2. Change the Target that is in the “Apply to Computers” section. 
  3. Delete the existing target and then "Apply To" and you can either use a recent target or go into the full list and find a target. 
  4. Once added, hit save.
  5. The error on the console says at the top of the policy “A software update policy already exists with this name. Please enter another name.”
  6. Then just have to click cancel and it tells that changes are abandoned. 
  7. If you just right-click the policy and click Actions>Retarget then you can change the target without issue since I am not having to hit the save button.
     
  8. What does work within the policy when you want to change something is if you want to change the schedule, for example, clicking the Run box for As soon as possible or unchecking it, etc.  That all works just fine.  It seems to be only an issue when you want to change the target.

 

No errors in the NS logs related to  'A software update policy already exists with this name. Please enter another name.'

Cause

There is a policy with empty Name in Software>Patch Management>Software Update Policies>Windows folder.

Environment

ITMS 8.5

Resolution

In order to validate if you have a patch policy with a blank name, do the following:

1. Execute the following query, where "Policy Name" below need to change to the policy for which the error occurs. For example: MS20-08-MRNET-4569748


SELECT count ( * )
FROM vItem i inner join ItemFolder itf
on itf.ItemGuid = i.Guid
WHERE i.Name like N'Policy Name'
AND (itf.ParentFolderGuid = '21C32410-ED2C-4BF4-80FB-B1A72A0E5ABA')
AND ('49FE4304-E09D-4382-9026-715868FFB856' = 0x0 OR
ClassGuid IN (
select ClassGuid from ClassBaseClass where BaseClassGuid = '49FE4304-E09D-4382-9026-715868FFB856')


It should return a value of "1", which means, only one policy with that name.

2.  and then

SELECT count ( * )
FROM vItem i inner join ItemFolder itf
on itf.ItemGuid = i.Guid
WHERE i.Name like N''
AND (itf.ParentFolderGuid = '21C32410-ED2C-4BF4-80FB-B1A72A0E5ABA')
AND ('49FE4304-E09D-4382-9026-715868FFB856' = 0x0 OR
ClassGuid IN (
select ClassGuid from ClassBaseClass where BaseClassGuid = '49FE4304-E09D-4382-9026-715868FFB856')

It should return a value of "0". If you get a result of "1" or higher number, it means that you have a patch policy with blank name.

3. The query below returns all policies without name:

SELECT ItemGuid, ClassGuid, Name, Description, Attributes
FROM vItem i inner join ItemFolder itf
on itf.ItemGuid = i.Guid
WHERE i.Name like N''
AND ('49FE4304-E09D-4382-9026-715868FFB856' = 0x0 OR
ClassGuid IN (
select ClassGuid from ClassBaseClass where BaseClassGuid = '49FE4304-E09D-4382-9026-715868FFB856')
)

 

 

4. If you have any policy with empty name (like on the screen below), you should add a policy name to it.

 

Attachments