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

Show-ListView logs error about duplicate Name #1285

Closed
michaellwest opened this issue Sep 21, 2022 · 1 comment
Closed

Show-ListView logs error about duplicate Name #1285

michaellwest opened this issue Sep 21, 2022 · 1 comment
Assignees
Labels
area-platform 🐞 bug Oops! Sorry for the inconvenience.
Milestone

Comments

@michaellwest
Copy link
Member

Error message:

ManagedPoolThread #1 09:31:09 WARN The property cannot be processed because the property "Name" already exists.At line:1 char:26
+ $ScPsSlvPipelineObject | Select-Object -Property $ScPsSlvProperties
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Exception: System.Management.Automation.PSArgumentException
Message: The property cannot be processed because the property "Name" already exists.
@michaellwest michaellwest added the 🐞 bug Oops! Sorry for the inconvenience. label Sep 21, 2022
@michaellwest michaellwest added this to the 6.4 milestone Sep 21, 2022
@michaellwest michaellwest self-assigned this Sep 21, 2022
@michaellwest
Copy link
Member Author

Tested with these samples:

Get-ChildItem -Path "master:\content\home" | Show-ListView -Property Name
Get-ChildItem -Path "master:\content\home" | Show-ListView
$results = @(
    [pscustomobject]@{
        "Name" = "Michael"
    }
)
$results | Show-ListView -Property Name
$results = @(
    [pscustomobject]@{
        "Name" = "Michael"
    }
)
$results | Show-ListView -Property @{Label="Name"; Expression={$_.Name}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-platform 🐞 bug Oops! Sorry for the inconvenience.
Projects
None yet
Development

No branches or pull requests

1 participant