1 Reply Latest reply on Dec 8, 2017 6:16 AM by cwinning

    Add-PatchGroupItem Failing


      I am trying to run a simple:

      Add-PatchGroupItem -Name 'PatchGroup-A' -Cve 'CVE-2016-0127','CVE-2016-0149'


      However, I am getting an exception:

      Add-PatchGroupItem : Failed to add patch group items: Exception calling "AddPatchGroupItem" with "2" argument(s):

      "Generic data access layer exception. SQL exception message: Cannot insert the value NULL into column 'patchGroupId',

      table 'Protect.dbo.PatchGroupPatch'; column does not allow nulls. INSERT fails.

      The statement has been terminated."

      At line:1 char:1

      + Add-PatchGroupItem -Name 'PatchGroup-A' -Cve 'CVE-2016-0127','CVE-2016-0149'

      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

          + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException

          + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Add-PatchGroupItem