AnsweredAssumed Answered

Publish a map service to ArcGIS server in a model

Question asked by lmj0906 on Feb 15, 2018
Latest reply on Feb 20, 2018 by lmj0906

Does anyone know how I can use scripts in a model to publish a map service to ArcGIS  Server Manger from an mxd? I know that I have been circling around the answer and the correct code for days now, but I have two problems...1) I cannot quite get python script to work and 2) I am not sure how to actually add it to a model. I am new to this.

I have used the code provided from this link: CreateMapSDDraft—Help | ArcGIS for Desktop  and I can get it to run without errors, BUT I have no idea where my sdraft is...or if it has worked. It looks like it does nothing. I am not sure where the files go!  And then to top it off, I need to have this run in a model.

 

Any help on where (file location) I should be looking for my published service would be great. I know I am missing something small and fundamental.

 

Thanks

Larisa

Outcomes