I think we have different data we are running this code on. Can you run it on the original file you posted. Let's see if that makes a difference. I am thinking the date column may have the trim issue and maybe that is the issue.