has anyone else run into this error?

we are running a python script to recreate any tiles that have changed. we are seeing this all of a sudden in both 10.2.2 and 10.3.1. i cant seem to find any info on what this "error 999999" means, and not sure about the bad syntax either. we are also now seeing the "bad syntax in request" when running the "recreate_all_tiles" from within arcmap and not python.