Import-CliXml error when importing decimal value - by jbons

Status : 


Sign in
to vote
ID 776475 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 1/14/2013 5:16:05 AM
Access Restriction Public


Bug was sent in before (734411) but i didnt see a solution.

Getting the same error in powershell.

PowerCLI C:\> get-vm vm0011|get-annotation

AnnotatedEntity Name                 Value
--------------- ----                 -----
vm0011         BU                 Testingbv
vm0011         ClusterInvariantV...
vm0011         Creation Date
vm0011         End Date
vm0011         Owner
vm0011         Persistent state
vm0011         PnC.CustSpec
vm0011         PnC.Deployed
vm0011         PnC.GroupID
vm0011         PnC.Source
vm0011         SSI set
vm0011         Usage                clone

PowerCLI C:\> get-vm vm0011|get-annotation |Export-Clixml C:\Migratieta\testxml.xml
PowerCLI C:\> $vms = Import-Clixml C:\Migratieta\testxml.xml
Import-Clixml : The contents of the System.Decimal primitive type are not valid.
At line:1 char:21
+ $vms = Import-Clixml <<<< C:\Migratieta\testxml.xml
    + CategoryInfo         : NotSpecified: (:) [Import-Clixml], XmlException
    + FullyQualifiedErrorId : System.Xml.XmlException,Microsoft.PowerShell.Commands.ImportClixmlCommand
Sign in to post a comment.