Hello all.
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
Gokul001
(Gokul Balaji)
March 14, 2022, 7:30am
2
HI @happyfeat87
Have a look on the thread
Hey @atevis
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.
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…
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
Regards
Gokul
Hi @happyfeat87 ,
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.
1 Like
Hi @happyfeat87 ,
You have to convert the secureString to String using this
new System.Net.NetworkCredential(String.Empty, secstr_password).Password
Kind Regards,
Ashwin A.K
1 Like
jack.chan
(Jack Chan)
March 14, 2022, 7:35am
5
Can you click “Standard”, clear the password, then click “Secure” again and fill in “SAPPassword”
and make sure “Is Secure” is checked
2 Likes
system
(system)
Closed
March 17, 2022, 7:35am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.