I'm attempting to implement the 10.2 version of this script and keep running into the error that Consolidating the data failed when attempting to stage the service from a SDDraft document.
Traceback (most recent call last):
  File "C:\Python27\ArcGISx6410.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript
    exec codeObject in __main__.__dict__
  File "\\AGOL\py\update.py", line 406, in <module>
    updateSD()
  File "\\AGOL\py\update.py", line 249, in updateSD
    arcpy.StageService_server(newSDdraft, SD)
  File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\server.py", line 1204, in StageService
    raise e
ExecuteError: ERROR 001270: Consolidating the data failed.
Failed to execute (StageService).
Any ideas?