Using CloudUtil.exe to bulk export a large amount of machines skips virtual machines
search cancel

Using CloudUtil.exe to bulk export a large amount of machines skips virtual machines

book

Article ID: 306324

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  • A bulk export to CSV using the CloudUtil.exe fails the below error. 
    C:\Program Files (x86)\VMware\vCAC\vRealize Automation Designer>CloudUtil.exe Machine-BulkRegisterExport -m -p -f "C:\temp\test1.csv" -u [email protected]

Exporting 2 VMs ...
Skipping export of virtual machine <VM_NAME> because its catalog information could not be retrieved.
[18:49:38.320] Error: [sub-thread-Id="1" context="" token=""] <?xml version="1.0" encoding="utf-16"?>
<boolean>false</boolean>
Skipping export of virtual machine <VM_NAME> because its catalog information could not be retrieved.
System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.1.0.0, Culture=neutral, PublicKeyToken=<HASH>' or one of its dependencies. The system cannot find the file specified.
   at DynamicOps.WorkQueueModel.Client.WorkQueueHelpers.FindCatalogItemRootAsync(String tenantId, String bindingId)
   at DynamicOps.WorkQueueModel.Client.WorkQueueHelpers.<>c__DisplayClass16.<<FindCatalogItemRoot>b__15>d__18.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at DynamicOps.WorkQueueModel.Client.WorkQueueHelpers.FindCatalogItemRoot(String tenantId, String bindingId)
   at DynamicOps.WorkQueueModel.Client.WorkQueueRegisterHelpers.BulkRegisterExport(BulkExportRequest exportRequest)
---> (Inner Exception #0) System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.1.0.0, Culture=neutral, PublicKeyToken=b6e51ea3eb1deebc' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Net.Http.Formatting, Version=5.1.0.0, Culture=neutral, PublicKeyToken=<HASH>'
   at DynamicOps.WorkQueueModel.Client.WorkQueueHelpers.FindCatalogItemRootAsync(String tenantId, String bindingId)
   at DynamicOps.WorkQueueModel.Client.WorkQueueHelpers.<>c__DisplayClass16.<<FindCatalogItemRoot>b__15>d__18.MoveNext()


Environment

VMware vRealize Automation 7.5.x

Cause

The directory in which CloudUtil.exe is called from is missing the below DLL files:

System.Net.Http.Formatting.dll
Newtonsoft.Json.dll

Resolution

  1. Login to the IaaS DEM machine.
  2. Copy the following files from:
C:\Program Files (x86)\VMware\vCAC\Distributed Execution Manager\DEM-W1\ConfigTool\ 
  1. Copy:
System.Net.Http.Formatting.dll
Newtonsoft.Json.dll
  1. To:
C:\Program Files (x86)\VMware\vCAC\vRealize Automation Designer\
  1. Reattempt the CloudUtil.exe bulk export