# Add survey is not working with Vmware Vm build

**URL:** <https://forum.ansible.com/t/add-survey-is-not-working-with-vmware-vm-build/33525>\
**Category:** AWX Project\
**Tags:** vmware, awx\
**Created:** [July 30, 2020, 8:10am UTC](https://forum.ansible.com/t/add-survey-is-not-working-with-vmware-vm-build/33525 "2020-07-30T08:10:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Selvam\_Elangovan](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@Selvam\_Elangovan](https://forum.ansible.com/u/Selvam_Elangovan)\
**Post date:** [July 30, 2020, 8:10am UTC](https://forum.ansible.com/t/add-survey-is-not-working-with-vmware-vm-build/33525/1 "2020-07-30T08:10:36Z")

</div>

Hi!

Good Day!

We have awx 13.0. We have template to create vm and it is working fine without any issue. There is a requirement to add multiple template name to build different version of Operating System.

I used Add Survy in Workflow template to add the template name which are available in vmware then we select appropriate template to install the OS however, once I use Survey to select template, some how the VmomiSupport.py does not like it and throws below error. If I add them template name in extra variable under workflow template it works perfectly. Kindly advice.

The full traceback is:

Traceback (most recent call last):  
File “/var/lib/awx/.ansible/tmp/ansible-tmp-1596094452.5168636-78-223081832043844/AnsiballZ\_vmware\_guest.py”, line 102, in   
\_ansiballz\_main()  
File “/var/lib/awx/.ansible/tmp/ansible-tmp-1596094452.5168636-78-223081832043844/AnsiballZ\_vmware\_guest.py”, line 94, in \_ansiballz\_main  
invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)  
File “/var/lib/awx/.ansible/tmp/ansible-tmp-1596094452.5168636-78-223081832043844/AnsiballZ\_vmware\_guest.py”, line 40, in invoke\_module  
runpy.run\_module(mod\_name=‘ansible.modules.cloud.vmware.vmware\_guest’, init\_globals=None, run\_name=‘ **main** ’, alter\_sys=True)  
File “/usr/lib64/python3.6/runpy.py”, line 205, in run\_module  
return \_run\_module\_code(code, init\_globals, run\_name, mod\_spec)  
File “/usr/lib64/python3.6/runpy.py”, line 96, in \_run\_module\_code  
mod\_name, mod\_spec, pkg\_name, script\_name)  
File “/usr/lib64/python3.6/runpy.py”, line 85, in \_run\_code  
exec(code, run\_globals)  
File “/tmp/ansible\_vmware\_guest\_payload\_cci7lstt/ansible\_vmware\_guest\_payload.zip/ansible/modules/cloud/vmware/vmware\_guest.py”, line 2834, in   
File “/tmp/ansible\_vmware\_guest\_payload\_cci7lstt/ansible\_vmware\_guest\_payload.zip/ansible/modules/cloud/vmware/vmware\_guest.py”, line 2823, in main  
File “/tmp/ansible\_vmware\_guest\_payload\_cci7lstt/ansible\_vmware\_guest\_payload.zip/ansible/modules/cloud/vmware/vmware\_guest.py”, line 2343, in deploy\_vm  
File “/tmp/ansible\_vmware\_guest\_payload\_cci7lstt/ansible\_vmware\_guest\_payload.zip/ansible/modules/cloud/vmware/vmware\_guest.py”, line 1448, in configure\_network  
File “/var/lib/awx/venv/ansible/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py”, line 663, in **setattr**  
CheckField(self.\_GetPropertyInfo(name), val)  
File “/var/lib/awx/venv/ansible/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py”, line 1098, in CheckField  
% (info.name, info.type. **name** , valType. **name** ))  
TypeError: For “startConnected” expected type bool, but got str  
fatal: [localhost]: FAILED! =\> {  
“changed”: false,  
“module\_stderr”: “Traceback (most recent call last):\n File \”/var/lib/awx/.ansible/tmp/ansible-tmp-1596094452.5168636-78-223081832043844/AnsiballZ\_vmware\_guest.py\“, line 102, in \n \_ansiballz\_main()\n File \”/var/lib/awx/.ansible/tmp/ansible-tmp-1596094452.5168636-78-223081832043844/AnsiballZ\_vmware\_guest.py\“, line 94, in \_ansiballz\_main\n invoke\_module(zipped\_mod, temp\_path, ANSIBALLZ\_PARAMS)\n File \”/var/lib/awx/.ansible/tmp/ansible-tmp-1596094452.5168636-78-223081832043844/AnsiballZ\_vmware\_guest.py\“, line 40, in invoke\_module\n runpy.run\_module(mod\_name=‘ansible.modules.cloud.vmware.vmware\_guest’, init\_globals=None, run\_name=‘ **main** ’, alter\_sys=True)\n File \”/usr/lib64/python3.6/runpy.py\“, line 205, in run\_module\n return \_run\_module\_code(code, init\_globals, run\_name, mod\_spec)\n File \”/usr/lib64/python3.6/runpy.py\“, line 96, in \_run\_module\_code\n mod\_name, mod\_spec, pkg\_name, script\_name)\n File \”/usr/lib64/python3.6/runpy.py\“, line 85, in \_run\_code\n exec(code, run\_globals)\n File \”/tmp/ansible\_vmware\_guest\_payload\_cci7lstt/ansible\_vmware\_guest\_payload.zip/ansible/modules/cloud/vmware/vmware\_guest.py\“, line 2834, in \n File \”/tmp/ansible\_vmware\_guest\_payload\_cci7lstt/ansible\_vmware\_guest\_payload.zip/ansible/modules/cloud/vmware/vmware\_guest.py\“, line 2823, in main\n File \”/tmp/ansible\_vmware\_guest\_payload\_cci7lstt/ansible\_vmware\_guest\_payload.zip/ansible/modules/cloud/vmware/vmware\_guest.py\“, line 2343, in deploy\_vm\n File \”/tmp/ansible\_vmware\_guest\_payload\_cci7lstt/ansible\_vmware\_guest\_payload.zip/ansible/modules/cloud/vmware/vmware\_guest.py\“, line 1448, in configure\_network\n File \”/var/lib/awx/venv/ansible/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py\“, line 663, in **setattr** \n CheckField(self.\_GetPropertyInfo(name), val)\n File \”/var/lib/awx/venv/ansible/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py\“, line 1098, in CheckField\n % (info.name, info.type. **name** , valType. **name** ))\nTypeError: For \“startConnected\” expected type bool, but got str\n”,  
“module\_stdout”: “”,  
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”,  
“rc”: 1  
}
