-
Notifications
You must be signed in to change notification settings - Fork 3
The property 'iconId' was not found for the 'Thycotic.PowerShell.Secrets.Summary' object. #419
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingtriage needednew issues that are still in state of triagenew issues that are still in state of triage
Description
Verified issue does not already exist?
Yes
What error did you receive
WasThrownFromThrowStatement : False
TargetSite : System.Collections.ObjectModel.Collection`1[System.Management.Automation.PSObject] Invoke(System.Collections.IEnumerable)
Message : Cannot convert value "@{id=9999; name=REDACTED; secretTemplateId=9998; secretTemplateName=REDACTED; folderId=9997; folderPath=REDACTED; siteId=1; active=True; checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Disabled; lastPasswordChangeAttempt=01-01-0001 00:00:00; responseCodes=; lastAccessed=; extendedFields=; checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=True; hidePassword=False; createDate=01-01-0001 00:00:00; daysUntilExpiration=291; hasLauncher=False; checkOutUserId=-1; checkOutUserName=; iconId=; iconName=}" to type "Thycotic.PowerShell.Secrets.Summary". Error: "Cannot convert the "@{id=9999; name=REDACTED; secretTemplateId=9998; secretTemplateName=REDACTED; folderId=9997; folderPath=REDACTED; siteId=1; active=True; checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Disabled; lastPasswordChangeAttempt=01-01-0001 00:00:00; responseCodes=; lastAccessed=; extendedFields=; checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=True; hidePassword=False; createDate=01-01-0001 00:00:00; daysUntilExpiration=291; hasLauncher=False; checkOutUserId=-1; checkOutUserName=; iconId=; iconName=}" value of type "System.Management.Automation.PSCustomObject" to type "Thycotic.PowerShell.Secrets.Summary"."
Data : {[System.Management.Automation.Interpreter.InterpretedFrameInfo, System.Management.Automation.Interpreter.InterpretedFrameInfo[]]}
InnerException : System.Management.Automation.RuntimeException: Cannot convert value "@{id=9999; name=REDACTED; secretTemplateId=9998; secretTemplateName=REDACTED; folderId=9997; folderPath=REDACTED; siteId=1; active=True; checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Disabled; lastPasswordChangeAttempt=01-01-0001 00:00:00; responseCodes=; lastAccessed=; extendedFields=; checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=True; hidePassword=False; createDate=01-01-0001 00:00:00; daysUntilExpiration=291; hasLauncher=False; checkOutUserId=-1; checkOutUserName=; iconId=; iconName=}" to type "Thycotic.PowerShell.Secrets.Summary". Error: "Cannot convert the "@{id=9999; name=REDACTED; secretTemplateId=9998; secretTemplateName=REDACTED; folderId=9997; folderPath=REDACTED; siteId=1; active=True; checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Disabled; lastPasswordChangeAttempt=01-01-0001 00:00:00; responseCodes=; lastAccessed=; extendedFields=; checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=True; hidePassword=False; createDate=01-01-0001 00:00:00; daysUntilExpiration=291; hasLauncher=False; checkOutUserId=-1; checkOutUserName=; iconId=; iconName=}" value of type "System.Management.Automation.PSCustomObject" to type "Thycotic.PowerShell.Secrets.Summary"."
---> System.Management.Automation.PSInvalidCastException: Cannot convert value "@{id=9999; name=REDACTED; secretTemplateId=9998; secretTemplateName=REDACTED; folderId=9997; folderPath=REDACTED; siteId=1; active=True; checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Disabled; lastPasswordChangeAttempt=01-01-0001 00:00:00; responseCodes=; lastAccessed=; extendedFields=; checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=True; hidePassword=False; createDate=01-01-0001 00:00:00; daysUntilExpiration=291; hasLauncher=False; checkOutUserId=-1; checkOutUserName=; iconId=; iconName=}" to type "Thycotic.PowerShell.Secrets.Summary". Error: "Cannot convert the "@{id=9999; name=REDACTED; secretTemplateId=9998; secretTemplateName=REDACTED; folderId=9997; folderPath=REDACTED; siteId=1; active=True; checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Disabled; lastPasswordChangeAttempt=01-01-0001 00:00:00; responseCodes=; lastAccessed=; extendedFields=; checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=True; hidePassword=False; createDate=01-01-0001 00:00:00; daysUntilExpiration=291; hasLauncher=False; checkOutUserId=-1; checkOutUserName=; iconId=; iconName=}" value of type "System.Management.Automation.PSCustomObject" to type "Thycotic.PowerShell.Secrets.Summary"."
---> System.Management.Automation.PSInvalidCastException: Cannot convert the "@{id=9999; name=REDACTED; secretTemplateId=9998; secretTemplateName=REDACTED; folderId=9997; folderPath=REDACTED; siteId=1; active=True; checkedOut=False; isRestricted=False; isOutOfSync=False; outOfSyncReason=; lastHeartBeatStatus=Disabled; lastPasswordChangeAttempt=01-01-0001 00:00:00; responseCodes=; lastAccessed=; extendedFields=; checkOutEnabled=False; autoChangeEnabled=False; doubleLockEnabled=False; requiresApproval=False; requiresComment=False; inheritsPermissions=True; hidePassword=False; createDate=01-01-0001 00:00:00; daysUntilExpiration=291; hasLauncher=False; checkOutUserId=-1; checkOutUserName=; iconId=; iconName=}" value of type "System.Management.Automation.PSCustomObject" to type "Thycotic.PowerShell.Secrets.Summary".
---> System.InvalidOperationException: The property 'iconId' was not found for the 'Thycotic.PowerShell.Secrets.Summary' object. The settable properties are: [SecretId <System.Int32>], [SecretName <System.String>], [Active <System.Boolean>], [AutoChangeEnabled <System.Boolean>], [CheckedOut <System.Boolean>], [CheckOutEnabled <System.Boolean>], [CreateDate <System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]>], [DaysUntilExpiration <System.Int32>], [DoubleLockEnabled <System.Boolean>], [ExtendedFields <Thycotic.PowerShell.Secrets.SummaryExtendedField[]>], [FolderId <System.Int32>], [HasLauncher <System.Boolean>], [HidePassword <System.Boolean>], [Id <System.Int32>], [InheritsPermissions <System.Boolean>], [IsOutOfSync <System.Boolean>], [OutOfSyncReason <System.String>], [IsRestricted <System.Boolean>], [LastAccessed <System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]>], [LastHeartbeatStatus <Thycotic.PowerShell.Enums.SecretHeartbeatStatus>], [LastPasswordChangeAttempt <System.Nullable`1[[System.DateTime, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]>], [Name <System.String>], [folderPath <System.String>], [RequiresApproval <System.Boolean>], [RequiresComment <System.Boolean>], [SecretTemplateId <System.Int32>], [SecretTemplateName <System.String>], [SiteId <System.Int32>], [ResponseCodes <System.String[]>], [checkOutUserId <System.Int32>], [checkOutUserName <System.String>], [hsmKeyIdentifier <System.String>].
at System.Management.Automation.LanguagePrimitives.CreateMemberNotFoundError(PSObject pso, DictionaryEntry property, Type resultType)
at System.Management.Automation.LanguagePrimitives.SetObjectProperties(Object o, IDictionary properties, Type resultType, MemberNotFoundError memberNotFoundErrorAction, MemberSetValueError memberSetValueErrorAction, Boolean enableMethodCall, IFormatProvider formatProvider, Boolean recursion, Boolean ignoreUnknownMembers)
at System.Management.Automation.LanguagePrimitives.SetObjectProperties(Object o, PSObject psObject, Type resultType, MemberNotFoundError memberNotFoundErrorAction, MemberSetValueError memberSetValueErrorAction, IFormatProvider formatProvider, Boolean recursion, Boolean ignoreUnknownMembers)
--- End of inner exception stack trace ---
at System.Management.Automation.LanguagePrimitives.SetObjectProperties(Object o, PSObject psObject, Type resultType, MemberNotFoundError memberNotFoundErrorAction, MemberSetValueError memberSetValueErrorAction, IFormatProvider formatProvider, Boolean recursion, Boolean ignoreUnknownMembers)
at System.Management.Automation.LanguagePrimitives.ConvertViaNoArgumentConstructor.Convert(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable, Boolean ignoreUnknownMembers)
--- End of inner exception stack trace ---
at System.Management.Automation.LanguagePrimitives.ConvertViaNoArgumentConstructor.Convert(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable, Boolean ignoreUnknownMembers)
at System.Management.Automation.LanguagePrimitives.ConvertViaNoArgumentConstructor.Convert(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
at System.Management.Automation.LanguagePrimitives.ConvertTo(Object valueToConvert, Type resultType, Boolean recursion, IFormatProvider formatProvider, TypeTable backupTypeTable)
at System.Management.Automation.LanguagePrimitives.ConvertUnrelatedArrays(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
at CallSite.Target(Closure, CallSite, Object)
at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
at System.Management.Automation.Interpreter.DynamicInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
--- End of inner exception stack trace ---
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
at System.Management.Automation.PSScriptCmdlet.DoProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
HelpLink :
Source : System.Management.Automation
HResult : -2146233087
StackTrace : at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
at System.Management.Automation.PowerShell.InvokeWithDebugger(IEnumerable`1 input, IList`1 output, PSInvocationSettings settings, Boolean invokeMustRun)
at System.Management.Automation.ScriptDebugger.ProcessCommand(PSCommand command, PSDataCollection`1 output)
at Microsoft.PowerShell.EditorServices.Services.PowerShell.Execution.SynchronousPowerShellTask`1.ExecuteInDebugger(CancellationToken cancellationToken) in C:\__w\1\s\src\PowerShellEditorServices\Services\PowerShell\Execution\SynchronousPowerShellTask.cs:line 237```
### Please run the command using -Verbose
_No response_
### Provide a test case or steps to reproduce
`Search-TssSecret -TssSession $TycoticSession -SecretTemplateId 9998`
### Expected behavior
Return of summary object.
### What Edition of Secret Server?
Cloud Subscription
### What version of Secret Server
Secret Server Cloud
### What PowerShell host was used when producing this error
VS Code (integrated terminal)
### PowerShell Host Version
Name Value
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Microsoft Windows 10.0.26100
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtriage needednew issues that are still in state of triagenew issues that are still in state of triage