I am using ArcGIS for Desktop 10.1 (Arc Info license) and ArcGIS for Server 10.1 and automating few things on server level and getting interesting errors.
I am overwriting map service through this script. The scripts works fine in ArcGIS Desktop environment. When I tried to run script outside of ArcGIS i.e cmd, it is getting an error.
I tried following things at my end:
My environmental variable is set properly
I have imported all ArcPy, OS modules & toolbox module.
After getting an error service is not overwriting.
Researching on my side.
Script code works fine in the ArcMap
Still getting an error & wondering that it is working greatly in ArcMap but outside of ArcGIS why it is not working?
Any help will be great !! thanks in advance : )
Please check complete code and screenshots