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.

closed as off-topic by PolyGeo Sep 10 '16 at 8:38

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the 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
  • If you can provide a code snippet that would be helpful. – PolyGeo Sep 10 '16 at 8:38

Browse other questions tagged or ask your own question.