<?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 001242 when calling arcpy.CreateGPSDDraft with result from .pyt toolbox in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683161#M26053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;These values must be filled in on the Item Description page from within ArcMap or ArcCatalog: &lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Documenting_a_tool_in_a_Python_toolbox/00150000003n000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Documenting_a_tool_in_a_Python_toolbox/00150000003n000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;We haven't got much push or request to implement a 100% python solution for doc'ing Python Toolboxes. You could post an idea on &lt;A href="http://ideas.arcgis.com"&gt;http://ideas.arcgis.com&lt;/A&gt; if you'd like to see this considered.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe ESRI can add a note in the documentation for the arcpy.CreateGPSDDraft function (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000008z000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000008z000000&lt;/A&gt;&lt;SPAN&gt;) that it only works with .tbx toolboxes, and there's no way to get it to work with python toolboxes?&amp;nbsp; Would have saved me some time digging thru documentation to find what I was missing, only to end up empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe the descriptions can just be made optional?&amp;nbsp; A warning would be great, but making it an error to not have parameter descriptions is treating your users like children.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Editing the XML files that contain the "descriptions" from the script that calls arcpy.CreateGPSDDraft is easy enough, but the format of those files doesn't appear to be documented anywhere.&amp;nbsp; It's human readable XML tho, so I was able to figure it out without documentation; a simple script that works for me is at &lt;/SPAN&gt;&lt;A href="https://gist.github.com/cwa-/9191377"&gt;https://gist.github.com/cwa-/9191377&lt;/A&gt;&lt;SPAN&gt; ..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 14:26:45 GMT</pubDate>
    <dc:creator>CharlesArnold</dc:creator>
    <dc:date>2014-02-24T14:26:45Z</dc:date>
    <item>
      <title>ERROR 001242 when calling arcpy.CreateGPSDDraft with result from .pyt toolbox</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683157#M26049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am unable to successfully call arcpy.CreateGPSDDraft with a result object from a tool that's defined in a python toolbox.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I always get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;nbsp; rl = [tool() for tool in tools] # calls each tool and stores the result objects in "rl"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateGPSDDraft(rl, r'S:\source\git\testpyt\test_gp_create.sddraft', 'test_gp')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Out[4]: &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {'errors': {(u'ERROR 001242: Tool test1 is missing item description summary',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80): [],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'ERROR 001242: Tool test2 is missing item description summary', 80): [],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'ERROR 001242: Tool test3 is missing item description summary',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 80): [], ..&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone had any success with this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 20:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683157#M26049</guid>
      <dc:creator>CharlesArnold</dc:creator>
      <dc:date>2014-02-19T20:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001242 when calling arcpy.CreateGPSDDraft with result from .pyt toolbox</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683158#M26050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tool Error: 001242 states that, the task is missing the required summary in the Item Description. Provide a summary in Item Description.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 10:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683158#M26050</guid>
      <dc:creator>NidhinKarthikeyan</dc:creator>
      <dc:date>2014-02-20T10:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001242 when calling arcpy.CreateGPSDDraft with result from .pyt toolbox</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683159#M26051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Tool Error: 001242 states that, the task is missing the required summary in the Item Description. Provide a summary in Item Description.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand the error message; when I'm publishing from within ArcMap, I can simply double click the error message and provide the description.&amp;nbsp; I want to create a script that will create the .sd file from the .pyt file without me having to do a bunch of repetitive clicking around in the UI.&amp;nbsp; I assume that's what the arcpy.CreateGPSDDraft function is for, but I haven't been able to get it to work with a .pyt toolbox.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 17:18:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683159#M26051</guid>
      <dc:creator>CharlesArnold</dc:creator>
      <dc:date>2014-02-20T17:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001242 when calling arcpy.CreateGPSDDraft with result from .pyt toolbox</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683160#M26052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;These values must be filled in on the Item Description page from within ArcMap or ArcCatalog: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Documenting_a_tool_in_a_Python_toolbox/00150000003n000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Documenting_a_tool_in_a_Python_toolbox/00150000003n000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We haven't got much push or request to implement a 100% python solution for doc'ing Python Toolboxes. You could post an idea on &lt;/SPAN&gt;&lt;A href="http://ideas.arcgis.com"&gt;http://ideas.arcgis.com&lt;/A&gt;&lt;SPAN&gt; if you'd like to see this considered.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 13:23:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683160#M26052</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2014-02-24T13:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001242 when calling arcpy.CreateGPSDDraft with result from .pyt toolbox</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683161#M26053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;These values must be filled in on the Item Description page from within ArcMap or ArcCatalog: &lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Documenting_a_tool_in_a_Python_toolbox/00150000003n000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Documenting_a_tool_in_a_Python_toolbox/00150000003n000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;We haven't got much push or request to implement a 100% python solution for doc'ing Python Toolboxes. You could post an idea on &lt;A href="http://ideas.arcgis.com"&gt;http://ideas.arcgis.com&lt;/A&gt; if you'd like to see this considered.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe ESRI can add a note in the documentation for the arcpy.CreateGPSDDraft function (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000008z000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000008z000000&lt;/A&gt;&lt;SPAN&gt;) that it only works with .tbx toolboxes, and there's no way to get it to work with python toolboxes?&amp;nbsp; Would have saved me some time digging thru documentation to find what I was missing, only to end up empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe the descriptions can just be made optional?&amp;nbsp; A warning would be great, but making it an error to not have parameter descriptions is treating your users like children.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Editing the XML files that contain the "descriptions" from the script that calls arcpy.CreateGPSDDraft is easy enough, but the format of those files doesn't appear to be documented anywhere.&amp;nbsp; It's human readable XML tho, so I was able to figure it out without documentation; a simple script that works for me is at &lt;/SPAN&gt;&lt;A href="https://gist.github.com/cwa-/9191377"&gt;https://gist.github.com/cwa-/9191377&lt;/A&gt;&lt;SPAN&gt; ..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 14:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683161#M26053</guid>
      <dc:creator>CharlesArnold</dc:creator>
      <dc:date>2014-02-24T14:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001242 when calling arcpy.CreateGPSDDraft with result from .pyt toolbox</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683162#M26054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have exactly the same problem, but the provided link does not work for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2015 18:46:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/683162#M26054</guid>
      <dc:creator>AlanStewart</dc:creator>
      <dc:date>2015-09-04T18:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 001242 when calling arcpy.CreateGPSDDraft with result from .pyt toolbox</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/1350175#M37688</link>
      <description>&lt;P&gt;Edit the ToolboxName.ToolName.pyt.xml file&lt;/P&gt;&lt;P&gt;Format the xml&lt;/P&gt;&lt;P&gt;Locate the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;tool&lt;/SPAN&gt; &lt;SPAN&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"ToolName"&lt;/SPAN&gt; &lt;SPAN&gt;displayname&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;SPAN&gt;ToolName&lt;/SPAN&gt;"&lt;/SPAN&gt; &lt;SPAN&gt;toolboxalias&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt; tag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;add a child tag&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;summary&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;My summary&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN&gt;summary&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Nov 2023 12:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/error-001242-when-calling-arcpy-creategpsddraft/m-p/1350175#M37688</guid>
      <dc:creator>OttarValvåg</dc:creator>
      <dc:date>2023-11-16T12:03:26Z</dc:date>
    </item>
  </channel>
</rss>

