I am trying to publish a map on my server but I am getting this error:
Compressing the service definition failed.
I have changed the location of service points, still the Error remains.
How can I solve this issue?
001269 : Compressing the service definition failed documentation suggests that you should:
Make sure you are not accessing files in the folder containing the service definition.
This same issue occurs for me if I am using a 64 bit Python version.
I believe by default ArcMap/Catalog will use 64 bit Python for geoprocessing (if installed).
To fix this I wrote the necessary steps in a python script and ran it in a 32 bit version of Python.
In my case, I open a 32 bit Shell that should say something like
[MSC v.1500 32 bit (Intel)] on win32.
Then I open the script from this same Shell and run it.