Powershell Snapin fails for "Search-Jobs" when not using any parameters or when the parameter is "-Name "Download Live Updates" in Control Compliance Suite
search cancel

Powershell Snapin fails for "Search-Jobs" when not using any parameters or when the parameter is "-Name "Download Live Updates" in Control Compliance Suite

book

Article ID: 176238

calendar_today

Updated On:

Products

Control Compliance Suite Windows

Issue/Introduction

When running the Powershell 'Search-Jobs' without any parameters or using the '-Name "Download Live Updates"' it fails

"PS C:\Users\ccsserviceacct> Search-Jobs -Name "Download Live Updates"
Search-Jobs : The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter
http://www.symantec.com/CSM/Components/Infrastructure/AppServer/IntegrationBridges/InfraBridge:GetJobInfoByNameResult. The InnerException message was 'Invalid enum
value 'DOWNLOAD_LU_JOB' cannot be deserialized into type 'Symantec.CSM.PS.JobManager.RefJobManagerService.JobType'. Ensure that the necessary enum values are present
and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute.'. Please see InnerException for more details.
At line:1 char:1
+ Search-Jobs -Name "Download Live Updates"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.ServiceM...ProcessRecord():NetDispatcherFaultException) [Search-Jobs], NetDispatcherFaultException
+ FullyQualifiedErrorId : FaultException,Symantec.CSM.PS.JobManager.SearchJobs"

Environment

Windows 2012 (R2)

CCS 12.5 with SCU 2019-1 or SCU 2019-2

Cause

There is a defect in the Powershell snapin

Resolution

This is fixed in CCS 12.5.1

Additional Information

NOTE: You may see this same type of error after upgrading CCS to v12.6. 
After upgrading to v12.6 you will need to grab the "CCS PowerShell Snap-ins.exe" for v12.6 and upgrade the PS cmdlets as well.

Once the PS cmdlets are upgraded you will no longer see the errors.