Flow error: Attempted to add black listed role: []Issue Flow error 'Attempted to add black listed role: [<ROLE_ID>]' appears when Run with role(s) option filled Steps to Reproduce: Open Flow DesignerOpen the flow with Run with role(s) option filledRun Test Note the error 'Attempted to add black listed role: [<ROLE_ID>]' appears ReleaseWashingtonResolutionThis can happen when the role contains an empty role. The empty role may appear when an existing one was deleted or due to the lack of necessary plugins.The resolution could be one of the following: 1. Identify and install necessary plugins 2. Restore deleted roles 3. Remove (empty) role from the existing role. Use following query to identify empty roles:1. https://<YOUR-INSTANCE-NAME>.service-now.com/sys_user_role_contains_list.do?sysparm_query=role.nameISEMPTY&sysparm_list_mode=grid Discovering empty roles may not be easy. If roles can't be identified by step 1 the script can also help with this: //Put your role sys_id here: var role_id = <YOUR_ROLE_SYS_ID>; var readyRoles = findRoles(role_id, {}); gs.print(JSON.stringify(readyRoles)); function findRoles(role_id, json_object) { var gr = new GlideRecord("sys_user_role_contains"); gr.addQuery("role", role_id); gr.query(); var roles = {}; while(gr.next()){ roles[gr.contains.name] = findRoles(gr.contains.sys_id.getValue(), {}); } var mainRole = new GlideRecord("sys_user_role"); mainRole.get(role_id); json_object[mainRole.name] = { "sys_id": mainRole.sys_id.getValue(), "name": mainRole.name.getValue(), "contained_roles": roles }; return json_object; After running the script and receiving a JSON if any role contains (empty) role this could be identified as "" or null instead of the role nameExample: { "demand_user":{ "sys_id":"4e8a65c8833211001ac7f7338ef6221c", "name":"demand_user", "contained_roles":{ "baseline_user":{ "baseline_user":{ "sys_id":"5558fa3d73204010aaecfcf2c4f6a78b", "name":"baseline_user", "contained_roles":{ } } }, "sn_gf.goal_user_read":{ "sn_gf.goal_user_read":{ "sys_id":"705d294077113010e2ab29354f5a9954", "name":"sn_gf.goal_user_read", "contained_roles":{ } } }, "":{ "":{ "sys_id":"", "name":null, "contained_roles":{ } } }, "sn_gf.strategy_planner_read":{ "sn_gf.strategy_planner_read":{ "sys_id":"b98056f701f9b410f87764092b753c71", "name":"sn_gf.strategy_planner_read", "contained_roles":{ } } } } }}