Hi,
I arrived in this thread because I’m experiencing a similar issue to that one of @lukasziebold and I cannot get rid of it.
I have a sequence with an FTP activity that’s causing me problems and I want to try it in an “isolated way”, that is, right click → “Test activity” (after opening it in its own tab; the one I want to try has the “Seqüència - Còpia per SFTP (no “interactiva”)” title in the attached screenshot).
Everything seems to go to work smoothly, the “Continue” and “Stop” buttons in the “Debug” tab are on now and then I see a warning message over a yellow background that I interpret it means I must fill in the required Variable values on the “Locals” tab to the left, in order to be able to test the sequence, which I do, but then, when I press F11, the same yellow window displays the text:
“The workflow has validation erros. Review and resolve them first”.
Which surprises me because the code prior to that always ran smoothly during a debugging session, and I can’t find any nearby error messages or issues.
So I try F7 or Shift+F7, as suggested in some posts I found here (after having to stop the debugging session, which is also a pity).
And then I get the offending message “Error ST-SEC-008 SecureString Variable Usage SecureString variable used outside of the creation scope in FTP Scope.”, which recommends that “Once a SecureString is retrieved, it should be used to log into the applications by using the Type Secure Text activity for normal applications or the Send Keys Secure activity for Terminals. The credential should not be used for any purpose other than the intended. Scope of these variables should be very limited, ideally in the same scope where they were created. This means arguments should ideally not be used to pass credentials to one workflow to another and variables containing credentials should be defined at the narrowest scope possible.”
But I can’t further narrow the scope of the password variable, which is defined in the surrounding common action to Get Credentials and the FTP Scope activities, and the FTP activity is neither an application or a terminal where I could “type in” any text or passwords.
Furthermore, I wonder if, after getting this of that “error” (which is also confusing, because the program was working before even with this one and further “errors” after an F7, so it sounds to me more like a “strong warning” or so - I mean, they let the app run) I’ll be able to run the activity, or seqüence, in that “isolated” scope I was intending to with the “Test Activity” option…