Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 219257

Trouble Copying File from VCO to Guest while using Attribute that is an Array

$
0
0

I'm getting an error message when trying to pass an array of VM names form a folder to the "For Each Copy File from VCO to Guest" workflow.

 

[2018-01-23 16:10:25.755] [E] Workflow execution stack:

***

item: 'Copy All Files To Parent VMs/item2', state: 'failed', business state: 'null', exception: 'java.lang.IllegalArgumentException: Iteration over multiple arrays requires that they have the same length: vm'

workflow: 'Copy All Files To Parent VMs' (0cceadcc-3853-44f3-9131-76dd9ec8a04f)

|  'attribute': name=vmFolder type=VC:VmFolder value=dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/group-v4701'&dunesName='VC:VmFolder'

|  'attribute': name=VMList type=Array/VC:VirtualMachine value=#{#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-1343'&dunesName='VC:VirtualMachine'#;#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-8774'&dunesName='VC:VirtualMachine'#;#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-5446'&dunesName='VC:VirtualMachine'#;#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-9429'&dunesName='VC:VirtualMachine'#;#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-8770'&dunesName='VC:VirtualMachine'#;#VC:VirtualMachine#dunes://service.dunes.ch/CustomSDKObject?id='shqvmwap65.cabelas.corp/vm-6103'&dunesName='VC:VirtualMachine'#}#

|  'attribute': name=vmUsername type=Array/string value=#{#string#Admin#}#

|  'attribute': name=vmPassword type=Array/SecureString value=#{#Any#__NULL__#}#

|  'attribute': name=vcoPath type=Array/string value=#{#string#/opt/vcofiles/1-EnableWindowsUpdate.bat#}#

|  'attribute': name=guestFilePath type=Array/string value=#{#string#C:\#}#

|  'attribute': name=overwrite type=Array/boolean value=#{#boolean#true#}#

|  'output': name=actionResult type=Array/VC:VirtualMachine value=null

|  'output': name=var type=Array/boolean value=null

|  'no inputs'

*** End of execution stack.

 

Here are my Visual Bindings:

 

For getAllVirtualMachine Element:

 

 

Foreach (Copy file) Workflow:

 

 

Main workflow Schema:

 

 

Is this just not possible? I don't want to use Powercli to copy files since I want to encrypt the parent VM's credentials. I need to pass multiple files over to the parent VM's during patching.

 

Thanks


Viewing all articles
Browse latest Browse all 219257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>