Value of type 'System.Security.SecureString' cannot be converted to 'String'

Hi,
when invoking GetAppCredentials.xaml from REFramework available in Level 3 - Advanced Training, and creating the assets in the Orchestrator, I get the following error when I run theworkflow:
Compiler error(s) encountered processing expression “Password”.
Value of type ‘System.Security.SecureString’ cannot be converted to ‘String’.
I tried : (new System.Net.NetworkCredential("", “myString”)).SecurePassword but returning the same error again.
Any ideas about this?
Thank you

1 Like

Hi @Vilma,

Welcome to the community!

Can you upload the xaml file here? Thanks!

Hi Jan,
please find them atached.
Thank you
GetAppCredentials.xaml (13.1 KB)
UiDemo_Login.xaml (8.7 KB)

2 Likes

You should use ‘Type Secure Text’ activity when entering a secure string in an input field :slight_smile:
Hope this helps.
Thank you!

6 Likes

Thank you @Jan_Brian_Despi! It solved my issue.

1 Like

Please mark my reply as the solution to close this topic. THanks @Vilma

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.