Skip to content

Get-ObjectProperty : Could not deserialize value 'DiscardResult' #392

@carsten0407

Description

@carsten0407

Describe the bug

With a few sensors, I get the following error message when querying the properties:
I see the same bug in #214 but ist must be a differnet error, it was in 2021

Steps to reproduce

get-sensor -id 26740 | Get-ObjectProperty

What is the output of 'Get-PrtgClient -Diagnostic'?

Get-ObjectProperty : Could not deserialize value 'DiscardResult' as it is not a valid member of type 'PrtgAPI.DebugMode'. Could not process XML '<injected_writeresult>DiscardResult</injected_writeresult>'.
At line:1 char:24
+ get-sensor -id 26740 | Get-ObjectProperty
+                        ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-ObjectProperty], XmlDeserializationException
    + FullyQualifiedErrorId : PrtgAPI.XmlDeserializationException,PrtgAPI.PowerShell.Cmdlets.GetObjectProperty

Additional context

PSVersion : 5.1.14393.6343
PSEdition : Desktop
OS : Microsoft Windows Server 2016 Datacenter
PrtgAPIVersion : Unknown
Culture : en-US
CLRVersion : .NET Framework 4.8 (528049)
PrtgVersion : 24.2.94.1400
PrtgLanguage : english.lng

ModuleType Version Name ExportedCommands


Binary 0.9.19 PrtgAPI {Add-Device, Add-Group, Add-NotificationTrigger, Add-Sensor...}

Metadata

Metadata

Assignees

No one assigned

    Labels

    alleged-bugBugs raised by people helpfully using the Bug Report template!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions