VMware Cloud Community
scaling
Contributor
Contributor

Downloading Reports with vROPs and PowerCLI

Hello, I was using this guide to automatedly download reports from my vROPs instance:

https://ryanjan.uk/2018/05/21/vrops-reports-and-powercli-part-two-downloading-reports/

This has been working successfully until I updated my .NET framework. Now I get this error:

Exception calling "DownloadReport" with "2" argument(s): "Data at the root level is invalid. Line 1, position 1."

I traced this error back to this line here :

$vrops.ExtensionData.GetReport("5ef2e8c9-09bb-4a74-b560-f9ad2e810854").DownloadReport($MemoryStream, "CSV")

Does anybody know what changed with the .NET framework to make this line suddenly break?

0 Kudos
3 Replies
bertochi
Contributor
Contributor

hi, I have the same problem. Did you find any way around this?

thank you

0 Kudos
scott28tt
VMware Employee
VMware Employee

Moderator: Thread moved to the PowerCLI area.


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
LucD
Leadership
Leadership

I suggest you open an issue at the vROps-Reports module repo


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos