Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having trouble getting the ConvertToMSD Function to work. Technically it works, but not in the long run of my script.

I use the converttomsd function to create an msd. I then publish this msd as a web service. However, the webservice does not show the map. But.. I can save the mxd to an msd in ArcMap, and then publish from my python script and it works. So the snag seems to be the converttomsd function,

I originally thought it was the publishmsdtoserver function, but I was wrong. Any ideas..... I can provide my code if necessary.

share|improve this question
do you need to run a validate in py first? I know that if you run create msd on it's own in arcmap it requires the validate first. Just a shot – Brad Nesom Aug 19 '11 at 20:13
what do you mean validate? – Bailey Aug 19 '11 at 20:27
prior to creating an msd in arcmap you should alway see the validate window come up. this shows the requirements for creation. All services have a required layer description and must pass the other requirements. You may see some warnings and messages like data not using direct connection. – Brad Nesom Aug 19 '11 at 21:32
Compare the contents of the MSDs (the one generated in ArcPy and the one generated in ArcMap) and see if there is a difference. The MSD is a zip file. Unzip it to see the contents. – Craig Williams Aug 21 '11 at 7:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.