Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IComparer: 'PSMapNodeComparer': Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. #102

Open
iRon7 opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@iRon7
Copy link
Owner

iRon7 commented Oct 22, 2024

if ($SortOutput -eq $false)
{
    Write-Log -Object 'Sorting Basic configuration data on Priority'
    $basicConfigNode = $basicConfigNode | Sort-ObjectGraph -PrimaryKey 'NodeName', 'Identity', 'Id', 'UniqueId', 'Priority' -MaxDepth 20
    Write-Log -Object ' '
}

##[error]Sort-ObjectGraph : Exception calling "Sort" with "1" argument(s): "Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. IComparer: 'PSMapNodeComparer'."
At D:\a\1\s\CICD\Scripts\PreBuild.ps1:217 char:43

  • … onfigNode | Sort-ObjectGraph -PrimaryKey 'NodeName', 'Identity', 'Id' …
  •           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
  • CategoryInfo : NotSpecified: (:) [ConvertTo-SortedObjectGraph], MethodInvocationException
  • FullyQualifiedErrorId : ArgumentException,ConvertTo-SortedObjectGraph
    ##[error]PowerShell exited with code '1'.
@iRon7 iRon7 self-assigned this Oct 29, 2024
@iRon7 iRon7 added the bug Something isn't working label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant