What happens when you run this yourself on a test environment, changing the output paths etc...
By "Overnight" are you implying this is a triggered batch job somehow called from a scheduler or is it being run by a user?
Does the user/ account running this have permissions to write to the...