VMware Cloud Community
RanjnaAggarwal
VMware Employee
VMware Employee

vRealize Orch Workflow failed

when i am executing the workflow to add the dns A record it is getting failed with this message:-

-06 11:08:13.175] [E] Error in (Workflow:Add DNS-Host / Build Command (item1)#0) ReferenceError: "ipAddress" is not defined.

[2016-05-06 11:08:13.196] [E] Workfow execution stack:

***

item: 'Add DNS-Host/item1', state: 'failed', business state: 'null', exception: 'ReferenceError: "ipAddress" is not defined.'

workflow: 'Add DNS-Host' (c1b125dc-dc59-40fd-841b-52af18ad428d)

|  'attribute': name=cmdletName type=string value=Add-DnsServerResourceRecordA

|  'attribute': name=pshellCommand type=string value=

|  'attribute': name=host type=PowerShell:PowerShellHost value=dunes://service.dunes.ch/CustomSDKObject?id='cfae0f4b-ac0b-4b16-92c1-ea42a2bfc8d7'&dunesName='PowerShell:PowerShellHost'

|  'input': name=hostName type=string value=QALin777

|  'input': name=ipAddess type=string value=172.20.11.57

|  'input': name=zoneName type=string value=vclass.local

|  'output': name=output type=PowerShell:PowerShellRemotePSObject value=null

*** End of execution stack.

Any help on the same would be appreciated

Regards, Ranjna Aggarwal
0 Kudos
3 Replies
iiliev
VMware Employee
VMware Employee

Most likely, this reference error means you are trying to use workflow input parameter 'ipAddress' in a scriptable task item (or other workflow item) without binding it as 'in' parameter of the item.

So you need to find where in your workflow this parameter is used, then open the workflow for editing, open the corresponding workflow item, click on the 'IN' tab (second from the left), then click on the leftmost of the 3 icons (bind to workflow parameter/attribute), and make sure the check box next to ipAddress parameter is selected.

0 Kudos
sbeaver
Leadership
Leadership

I have also seen this if you do not declare a variable in the script like var ipaddress = x.x.x.x.

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
0 Kudos
Dan_Linsley
VMware Employee
VMware Employee

Looks like there is a typo with an input or binding. Your script is looking for "ipAddress" but in the workflow error stack there is a "ipAddess" (missing an r) defined.

0 Kudos