Pratima_Mokkala_845

get_login() function in UC4 Automation Engine V9

Discussion created by Pratima_Mokkala_845 on Oct 16, 2014
Latest reply on Jul 27, 2017 by Andreas_Sprosec_7439
Hi,
  In the process tab of a windows job the below code is being used to extract login id and password and pass it as a parameter to one of the windows script.

:SET &LOG_IN# = GET_LOGIN("TEST_ADVANTAGE.LOGIN","OR1SRV-QCHKS005.orcclab.com","WINDOWS",LOGIN_INFO)
echo &LOG_IN#
:SET &PW# = GET_LOGIN(TEST_ADVANTAGE.LOGIN,"OR1SRV-QCHKS005.orcclab.com","WINDOWS",PASSWORD)
echo &PW#

This job is giving run time error:
6/2014 2:37:54 PM -  U0020536 Runtime error in object 'ADV.WIN.UT_CALL_PS_DIR_TEST.WIN.TEST' line '00010': The provided type 'WINDOWS' is not allowed.
10/16/2014 2:37:39 PM -  U0020536 Runtime error in object 'ADV.WIN.UT_CALL_PS_DIR_TEST.WIN.TEST' line '00010': The provided type 'WINDOWS' is not allowed.

We have added the datatype "WINDOWS" to UC_LOGIN_TYPES.
Inspite of this its still failing.
Please advise.

Thank you,
Pratima

Outcomes