Hi, this error is happening because you are passing string type “BCNtest!2345” to a property that expects secure string type.
I guess that in the final design you will not pass the password like in the screenshots. You will have to get the password from somewhere (the user, Orchestrator asset, Windows credential manager). In these cases, you get the password already as secure string and this error will not happen.
E.g. if you would use the Request Credential activity on the screenshot below, you would pass the OutSecStringPass variable as the input password for your activity.
@NIMMY_S_MATHEW You can use an assign activity created a variable (Pass) of type Secure string
Pass = New system.Net.NetworkCredential(String.Empty, “Your Password”).SecurePassword
In type into activity pass the variable “Pass” which you created
You have defined the argument USERPASSWORD as secure string and you are trying to pass the value of type string to the library. Hence, it is showing that error. Make sure you pass the value of type Secure String. Then, it should work