I am using get credentials activity to login into SAP. But getting the below error.
Error ERROR Validation Error Compiler error(s) encountered processing expression “SAPPassword”.
Value of type ‘System.Security.SecureString’ cannot be converted to ‘String’. Main.xaml
Have a look on the thread
You can get an easy understanding from what @Florent_Salendres Mentioned.
I am just here adding some things for your understanding to get about secure string.
Represents text that should be kept confidential, such as by deleting it from computer memory when no longer needed. This class cannot be inherited.
SecureString is a string type that provides a measure of security. It tries to avoid storing potentially sensitive strings in process memory as plain text. The v…
I think the error may be happening since you have passed the
SAPPassword variable in the
Password Property instead of
Secure Password Property of the Activity.
You have to convert the
secureString to String using this
new System.Net.NetworkCredential(String.Empty, secstr_password).Password
Can you click “Standard”, clear the password, then click “Secure” again and fill in “SAPPassword”
and make sure “Is Secure” is checked
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.