hoe do i rectify this error , its a validation error and i m not able to publish cause of this error
this is a workflow analyzer rule error
either you need to change the scope appropriately or remove or uncheck rule from workflow analyzer rules
cheers
The password variable which is of type SecureString is out of the scope so change the scope of that variable and put it into the ony scope where you’re using it e.g in type into activity or any login activity which requires password.
Cheers
This solution should help you understand the validation error and how to use correctly.
This means that governance policy is enabled during publish which is enforcing workflow analyzer rules.
And this rule is by default in error state.
Now, 3 things can be done in this case:
-
use get credential activity in the the narrowest scope meaning right before the activity or within the sequence where it is being used.
-
it stays in error state only but governance policy doesn’t enforce this on publishing but on run, that way it will not obstruct the publishing but responsibility now lies with the developers to ensure it was corrected if raised during run before publishing.
-
not recommended but depends on your organization/team specific policy. To change this rule from error state to warning. That way it will not obstruct the publishing.
Please let me know if you need further inputs on governance policy or workflow analyzer rules handling.
Hope this helps.
Regards
Sonali
