Activity '{0}' cannot define arguments other than the built-in Result argument and also declare access to public locations ...

Activity '{0}' cannot define arguments other than the built-in Result argument and also declare access to public locations via CodeActivityPublicEnvironmentAccessor. Either pass all data into the activity via arguments, or via CodeActivityPublicEnvironmentAccessor.TryGetAccessToPublicLocation and TryGetReferenceToPublicLocation.