Error on look up record action: "GlideRecord.setTableName - empty table name"Issue Getting below error on lookup record action: "GlideRecord.setTableName - empty table name".CauseThe latest snapshot of the action is missing its element mappingsOn the table, sys_hub_action_type_definition, search for Look Up Records action and pull in the main snapshot and the latest snapshot columns. https://<instance_name>.service-now.com/sys_hub_action_type_definition_list.do?sysparm_query=name%3DLook%20Up%20Records&sysparm_view= Copy the main snapshot and open flow designer and open any action and on the address bar replace the sys_id with the main snapshot value you just copied. https://<instance_name>.service-now.com/$flow-designer.do?sysparm_nostack=true#/action-designer/43400a1587003300663ca1bb36cb0b4b/var/input This would open the Look Up Records action on the flow without any issues.Repeat the same activity for the latest snapshot also, and you would observe issues on the action as below where the table name is empty. This means that the mapping for the latest snapshot is missing.Search this latest snapshot id on the sys_element_mapping table. You need to search this on the 'ID' column.You would see no results for this search.The latest snapshot of the step is missing its element mappings. https://<instance_name>.service-now.com/nav_to.do?uri=%2Fsys_element_mapping_list.do For comparison, you can check for the main snapshot which has the expected mappings.Resolution The following script can be used to re-compile the action (table name: sys_hub_action_type_definition) without modifying their contents: gr = new GlideRecord('sys_hub_action_type_definition'); gr.get("sys_id"); //sys_id of the Look Up Records action from the sys_hub_action_type_definition table gs.print(gr.latest_snapshot); if (!JSUtil.nil(gr.getValue("master_snapshot"))) { gr.latest_snapshot = gr.master_snapshot; gr.setWorkflow(false); gr.update(); } This will update the latest snapshot value with the main snapshot value. The action will recompile on the next execution and pick up the correct input mappings.Never clear the latest snapshot field if the master snapshot is empty, this current script on this KB prevents such an update.Related LinksHow to re-compile flows and actions without modifying their contents