When you see error message ensure that Layers panel is visible, click on Stop what will expand action and highlight step that can not be processed. Take screenshot and post it here.
Trouble with actions is that all steps are independent, can be executed independently of each other but every step in action has dependencies like to select layer 2, for example, layer with that name must be present in the Layers panel.
To fix error messages you must ensure through action steps or manually that each and every step can be executed at the moment when it is played by action. When recording steps developer can record many steps using menu items or using any document with totally different Layers panel and other conditions that are not available in the document when playing action. Either developer missed to manage conditions or you are missing instructions.