Skip to content

An item with the same key has already been added #130

Open
@udotrautmann

Description

@udotrautmann

Bug description

New-AsBuiltReport : An item with the same key has already been added.
At line:1 char:1

  • New-AsBuiltReport -Report VMware.vSphere -Target "xc-vca-01.sysc-chem ...
  •   + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,New-AsBuiltReport
    
    

Command-line input

New-AsBuiltReport -Report VMware.vSphere -Target "" -Username "[email protected]" -Password "password" -Format TEXT,Html,Word -OutputFolderPath "C:\Doku\VMware" -Timestamp -AsBuiltConfigFilePath "C:\Doku\AsBuiltReport.json" -Verbose

Steps to reproduce

any time trying to create a new report with the cli above I getting this error at the end of the runtime and there is no report created

Expected behaviour

successful create report

Screenshots

No response

Operating System

Windows Server 2025 Standard
PowerShellVersion 5.1.26100.3624

PowerShell Version

Name Value


PSVersion 5.1.26100.3624
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.3624
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

PowerShell Modules

Name Version


AsBuiltReport.Core 1.4.3
AsBuiltReport.VMware.vSphere 1.3.4.1
PScribo 0.11.1

Additional Context

No response

Before submitting

Metadata

Metadata

Assignees

Labels

3rd party issueIssue is not directly related to AsBuiltReport codebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions