AnsweredAssumed Answered

Unable to publish an mxd to a feature service

Question asked by geoerickson on Aug 19, 2014
Latest reply on Oct 16, 2018 by acbassil

I am using ArcGIS Server 10.2 and am able to successfully use arcpy to publish MapServer and GeoCode services. However, I cannot find anything about publishing a FeatureServer service outside of initially publishing it as a MapServer service and then modifying it.

I have mxd's and they mostly get published as MapServer services using the general: arcpy.mapping.CreateMapSDDraft > StageService_server > UploadServiceDefinition_server commands. I want to be able to publish from mxd to FeatureServer service in much the same way as above. This seems like it was possible with the legacy msd files(old sd format). Like much else with ESRI I am perplexed at the lack of intuitive/complete documentation and features.


I have tried many ways of manipulating the sddraft file with xml.dom.minidom but to no avail. The analyze and stage commands say the draft is ok but then it throws a 001270 error. I have looked this error up and much of the solutions seem very inapplicable to my situation. I have tried pretty much everything I can find web searching for a solution so if anyone has any other knowledge it is much appreciated.