I would try to copy only the second task into a separate job, and run it with extensive debugging. That way you are eliminating all kind of 'noise' (flow, triggers, time exceptions, conditions - whatever) from the main job. If it works, there is something wrong with the main job. If not, there is something wrong with the task itself. I would start there.