-
Notifications
You must be signed in to change notification settings - Fork 5
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
Cannot process argument transformation on parameter 'TEXT'. Cannot convert value to type System.String. #28
Comments
Could you run these cmdlet and send me the logs? Enable powershell debugging: $global:VerbosePreference = 'Continue'
$global:DebugPreference = 'Continue'
Start-Transcript -Path .\Output.log
New-AsBuiltReport -Report VMware.SRM -Target 'VCSA URL' -Credential $creds -Format Text,Html,Word -OutputFolderPath 'C:\temp\SRMReport' -ReportConfigFilePath 'C:\temp\SRMReport\AsBuiltReport.VMware.SRM.json' -Verbose <-- change this part with your parameters-->
Stop-Transcript The commands generate the Output.log file which you can send to me at: After saving the log, reset powershell to default settings: $global:VerbosePreference = 'SilentlyContinue'
$global:DebugPreference = 'SilentlyContinue' |
Sorry for the delay on this. The log file has been sent. |
Can you test version 0.4.6? Let me know the results! Update-Module -Name AsBuiltReport.VMware.SRM -Force
Import-Module -Name AsBuiltReport.VMware.SRM -Force |
This looks to have completed but with some issues. For each Protection group it gives the following error and leaves the last column empty in the table - Also in the Protection Groups table the Protected Datastores and Protected VM's are showing ID's rather than names. So Datastore-datastore-xxxxxx and VirtualMachine-vm-xxxx Also within the Recovery Group its unable to process the following, leaving an empty last column in the table -
|
SRM and Vcenter versions? |
SRM Version - 8.6 |
Can you test version 0.4.7? i can't reproduce your issue but want to see if the problem can be resolve by not transforming empty values to '--' Update-Module -Name AsBuiltReport.VMware.SRM -Force
Import-Module -Name AsBuiltReport.VMware.SRM -Force |
Bug description
When running the report with ProtectionGroup in the config file set to anything other than 0 I'm getting the following error
Which then gives the error -
If I then set ProtectionGroup to 0 but then RecoveryGroup to anything higher than 1, I get the below error but the report gets generated just with the Virtual Machine sections empty.
I'm not sure if this is related to the virtual machines in question having a dash in their name but any help would be grateful.
Command-line input
New-AsBuiltReport -Report VMware.SRM -Target 'VCSA URL' -Credential $creds -Format Text,Html,Word -OutputFolderPath 'C:\temp\SRMReport' -ReportConfigFilePath 'C:\temp\SRMReport\AsBuiltReport.VMware.SRM.json' -Verbose
Steps to reproduce
Expected behaviour
Being able to report on any level for both Protection Groups and Recovery Groups
Screenshots
No response
Operating System
Windows 11 - 23H2
PowerShell Version
Name Value
PSVersion 5.1.22621.4249
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.4249
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
PowerShell Modules
Name Version
AsBuiltReport.Core 1.4.0
AsBuiltReport.VMware.SRM 0.4.5
PScribo 0.10.0
Additional Context
No response
Before submitting
The text was updated successfully, but these errors were encountered: