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
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.
I have also seen this if you do not declare a variable in the script like var ipaddress = x.x.x.x.
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.