The only thing that jumps out as a possible problem.

Where you say 'Delete Text File
You are actually deleting the pptx I think. Maybe it is being killed before it has fully reused the slides. I'm presuming there are 26 slides to insert.