<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ERROR 001243 preventing automatic publishing of geoprocessing service in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-001243-preventing-automatic-publishing-of/m-p/695345#M53901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake, this is true! Another aspect of my tool is that it is written in C#, and I have to make a registry change to be able to see (and use) the edit button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/es/knowledgebase/techarticles/detail/27000" title="http://support.esri.com/es/knowledgebase/techarticles/detail/27000"&gt;27000 - Enable ArcMap to create documentation for custom geoprocessing tools&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which leads me to an ArcObjects-related question. My GP-Tool implements IGPFunction.MetadataFile() which is a getter to return the file name of the metadata.xml file. The XML file contains the item description, but is not created until I edit the Item Description in ArcMap/ArcCatalog. Is there a way to automatically create this file, so that I only have to insert the missing item description text? If this could be scriptable with ArcObjects or Python, this would make the publishing process even more automatic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 11:50:15 GMT</pubDate>
    <dc:creator>StefanOffermann</dc:creator>
    <dc:date>2014-10-02T11:50:15Z</dc:date>
    <item>
      <title>ERROR 001243 preventing automatic publishing of geoprocessing service</title>
      <link>https://community.esri.com/t5/python-questions/error-001243-preventing-automatic-publishing-of/m-p/695343#M53899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to automate the process of publishing a geoprocessing service to ArcGIS for Server 10.2.2, using a python script:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="python" name="code"&gt;import arcpy result = r"C:\data\ContourLineFunction.rlt" connectionPath = r"C:\Users\sof\AppData\Roaming\ESRI\Desktop10.2\ArcCatalog\arcgis on localhost_6080 (admin).ags" sddraft = "ContourLineFunction.sddraft" sd = "ContourLineFunction.sd" serviceName = "ContourLineFunction"&amp;nbsp; # create service definition draft arcpy.CreateGPSDDraft( &amp;nbsp;&amp;nbsp;&amp;nbsp; result, sddraft, serviceName, server_type="ARCGIS_SERVER", &amp;nbsp;&amp;nbsp;&amp;nbsp; connection_file_path=connectionPath, copy_data_to_server=False, &amp;nbsp;&amp;nbsp;&amp;nbsp; folder_name=None, summary="lorem ipsum", tags="gp", &amp;nbsp;&amp;nbsp;&amp;nbsp; executionType="Synchronous", resultMapServer=False, &amp;nbsp;&amp;nbsp;&amp;nbsp; showMessages="INFO", maximumRecords=1000, minInstances=1, &amp;nbsp;&amp;nbsp;&amp;nbsp; maxInstances=5, maxUsageTime=100, maxWaitTime=10, maxIdleTime=180)&amp;nbsp; analyzeMessages = arcpy.mapping.AnalyzeForSD(sddraft)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result from the AnalyzeForSD function contains multiple errors 001243:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="javascript" name="code"&gt;{ &amp;nbsp; 'errors': &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'ERROR 001243: The ContourLineFunction/in_string_version parameter is missing a syntax dialog explanation in the item description', 92): [], &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'ERROR 001243: The ContourLineFunction/yCoordinate parameter is missing a syntax dialog explanation in the item description', 92): [], &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'ERROR 001242: Tool ContourLineFunction is missing item description summary', 80): [], &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'ERROR 001243: The ContourLineFunction/xCoordinate parameter is missing a syntax dialog explanation in the item description', 92): [], &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'ERROR 001243: The ContourLineFunction/radius parameter is missing a syntax dialog explanation in the item description', 92): []} ...&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I can get rid of the errors by manually entering item descriptions in the Service Editor in ArcMap/ArcCatalog.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to find the settings in the sddraft file, but nothing looked like the right place for the values.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to find something inside the .rlt-file (geoprocessing result), but this was all binary stuff inside a ZIP file &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I automate the setting of the item descriptions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 07:44:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001243-preventing-automatic-publishing-of/m-p/695343#M53899</guid>
      <dc:creator>StefanOffermann</dc:creator>
      <dc:date>2014-10-02T07:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001243 preventing automatic publishing of geoprocessing service</title>
      <link>https://community.esri.com/t5/python-questions/error-001243-preventing-automatic-publishing-of/m-p/695344#M53900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe there is a way to update the dialog explanation using arcpy.&amp;nbsp; You will need to edit the explanation before running your script above by right-clicking on the model &amp;gt; Item Description &amp;gt; Edit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 10:59:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001243-preventing-automatic-publishing-of/m-p/695344#M53900</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-10-02T10:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001243 preventing automatic publishing of geoprocessing service</title>
      <link>https://community.esri.com/t5/python-questions/error-001243-preventing-automatic-publishing-of/m-p/695345#M53901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake, this is true! Another aspect of my tool is that it is written in C#, and I have to make a registry change to be able to see (and use) the edit button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/es/knowledgebase/techarticles/detail/27000" title="http://support.esri.com/es/knowledgebase/techarticles/detail/27000"&gt;27000 - Enable ArcMap to create documentation for custom geoprocessing tools&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which leads me to an ArcObjects-related question. My GP-Tool implements IGPFunction.MetadataFile() which is a getter to return the file name of the metadata.xml file. The XML file contains the item description, but is not created until I edit the Item Description in ArcMap/ArcCatalog. Is there a way to automatically create this file, so that I only have to insert the missing item description text? If this could be scriptable with ArcObjects or Python, this would make the publishing process even more automatic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 11:50:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001243-preventing-automatic-publishing-of/m-p/695345#M53901</guid>
      <dc:creator>StefanOffermann</dc:creator>
      <dc:date>2014-10-02T11:50:15Z</dc:date>
    </item>
  </channel>
</rss>

