<?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: GPK Parameters for Python Script Tool in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/gpk-parameters-for-python-script-tool/m-p/539964#M2752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like the parameters may not be set up correctly when you added/imported the Python script into a toolbox in ArcMap. When adding a script to a toolbox the third screen of the wizard/dialog lets you define the parameters in terms of data type and input/output direction. You can access the same dialog after the script has been imported by right clicking the script within the toolbox then selecting Properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's some doc which covers this in the desktop help: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000000n000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000000n000000&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2012 07:14:59 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2012-08-01T07:14:59Z</dc:date>
    <item>
      <title>GPK Parameters for Python Script Tool</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/gpk-parameters-for-python-script-tool/m-p/539962#M2750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a Python script tool with Feature Set input parameters that are converted to GPString when packaged as a GPK (this is what the REST API reports). The output feature layers are set to GPFeatureRecordSetLayer, and I would expect the inputs to be the same base on the docs and samples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if I look at the JSON version, there are choiceList and defaultValue parameters, which aren't configured in my script or in the tool. (But probably come from my execution of the tool in ArcMap.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So when I execute the GPK from the Runtime, I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Error 000735: ...Value is required (repeated for each input)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Error 000800: The value is not a member of..... (values from the choiceList)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there extra steps required to prepare a Python script tool that I have missed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 21:30:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/gpk-parameters-for-python-script-tool/m-p/539962#M2750</guid>
      <dc:creator>MatthewBrown1</dc:creator>
      <dc:date>2012-07-31T21:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: GPK Parameters for Python Script Tool</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/gpk-parameters-for-python-script-tool/m-p/539963#M2751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I should add that a model of the same workflow works for me if I use the in-memory templates to draw some features.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 23:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/gpk-parameters-for-python-script-tool/m-p/539963#M2751</guid>
      <dc:creator>MatthewBrown1</dc:creator>
      <dc:date>2012-07-31T23:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: GPK Parameters for Python Script Tool</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/gpk-parameters-for-python-script-tool/m-p/539964#M2752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like the parameters may not be set up correctly when you added/imported the Python script into a toolbox in ArcMap. When adding a script to a toolbox the third screen of the wizard/dialog lets you define the parameters in terms of data type and input/output direction. You can access the same dialog after the script has been imported by right clicking the script within the toolbox then selecting Properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's some doc which covers this in the desktop help: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000000n000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00150000000n000000&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 07:14:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/gpk-parameters-for-python-script-tool/m-p/539964#M2752</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2012-08-01T07:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: GPK Parameters for Python Script Tool</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/gpk-parameters-for-python-script-tool/m-p/539965#M2753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Turns out that I had set the parameters correctly in the tool properties. However, when I ran the tool in ArcMap I used existing feature classes in the MXD to make sure the results were valid, when I packaged this result, the input parameters somehow changed to GPString. Perhaps this can be captured in the Analyze step?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 08:57:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/gpk-parameters-for-python-script-tool/m-p/539965#M2753</guid>
      <dc:creator>MatthewBrown1</dc:creator>
      <dc:date>2012-08-01T08:57:10Z</dc:date>
    </item>
  </channel>
</rss>

