<?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: py script runs in shell but 'ERROR 000735 ... Value is required' in AGS GP svc in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/py-script-runs-in-shell-but-error-000735-value-is/m-p/311427#M10773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone?&amp;nbsp; ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2011 19:20:11 GMT</pubDate>
    <dc:creator>ChristinaKepler</dc:creator>
    <dc:date>2011-05-24T19:20:11Z</dc:date>
    <item>
      <title>py script runs in shell but 'ERROR 000735 ... Value is required' in AGS GP svc</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/py-script-runs-in-shell-but-error-000735-value-is/m-p/311426#M10772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a python gp script (all v9.3.1) that runs fine if I run it 'standalone' in the python shell, but when I run it from a GP service in AGS, it immediately throws an error "ERROR 000735: OutZipFile: Value is required".&amp;nbsp; None of the logging nor gp.AddMessage's that I have in the script are being recorded, so it's failing at the get-go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I copied the Portland Clip and Ship example from the 'GP service examples' in ArcTutor as closely as possible (albeit v10) in terms of the way my GP service parameters are set up and how the associated variables are handled in the script, so I wouldn't expect this to fail.&amp;nbsp; But obviously I'm missing something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some background...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;python script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
queryExpr = "APINumber in (" + gp.GetParameterAsText(0) + ")"
emailAddr = gp.GetParameterAsText(1)
metadata = gp.GetParameterAsText(2)
outputShapeName = gp.GetParameterAsText(3)
outZipFile = arcpy.GetParameterAsText(4)
if outZipFile == '#' or not outZipFile:
&amp;nbsp;&amp;nbsp;&amp;nbsp; outZipFile = outZipDir + "/" + outputShapeName.replace(".shp",".zip")
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GP Service parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Parameter: ApiNumbers

&amp;nbsp;&amp;nbsp;&amp;nbsp; Data Type: GPString
&amp;nbsp;&amp;nbsp;&amp;nbsp; Display Name: ApiNumbers
&amp;nbsp;&amp;nbsp;&amp;nbsp; Direction: esriGPParameterDirectionInput
&amp;nbsp;&amp;nbsp;&amp;nbsp; Default Value:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameter Type: esriGPParameterTypeRequired
&amp;nbsp;&amp;nbsp;&amp;nbsp; Category:


Parameter: Email

&amp;nbsp;&amp;nbsp;&amp;nbsp; Data Type: GPString
&amp;nbsp;&amp;nbsp;&amp;nbsp; Display Name: Email
&amp;nbsp;&amp;nbsp;&amp;nbsp; Direction: esriGPParameterDirectionInput
&amp;nbsp;&amp;nbsp;&amp;nbsp; Default Value:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameter Type: esriGPParameterTypeRequired
&amp;nbsp;&amp;nbsp;&amp;nbsp; Category:


Parameter: ProdSummary

&amp;nbsp;&amp;nbsp;&amp;nbsp; Data Type: GPString
&amp;nbsp;&amp;nbsp;&amp;nbsp; Display Name: ProdSummary
&amp;nbsp;&amp;nbsp;&amp;nbsp; Direction: esriGPParameterDirectionInput
&amp;nbsp;&amp;nbsp;&amp;nbsp; Default Value:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameter Type: esriGPParameterTypeRequired
&amp;nbsp;&amp;nbsp;&amp;nbsp; Category:


Parameter: InFileName

&amp;nbsp;&amp;nbsp;&amp;nbsp; Data Type: GPString
&amp;nbsp;&amp;nbsp;&amp;nbsp; Display Name: InFileName
&amp;nbsp;&amp;nbsp;&amp;nbsp; Direction: esriGPParameterDirectionInput
&amp;nbsp;&amp;nbsp;&amp;nbsp; Default Value:
&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameter Type: esriGPParameterTypeRequired
&amp;nbsp;&amp;nbsp;&amp;nbsp; Category:


Parameter: OutZipFile

&amp;nbsp;&amp;nbsp;&amp;nbsp; Data Type: GPDataFile
&amp;nbsp;&amp;nbsp;&amp;nbsp; Display Name: OutZipFile
&amp;nbsp;&amp;nbsp;&amp;nbsp; Direction: esriGPParameterDirectionOutput
&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameter Type: esriGPParameterTypeRequired
&amp;nbsp;&amp;nbsp;&amp;nbsp; Category:
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 04:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/py-script-runs-in-shell-but-error-000735-value-is/m-p/311426#M10772</guid>
      <dc:creator>ChristinaKepler</dc:creator>
      <dc:date>2011-05-24T04:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: py script runs in shell but 'ERROR 000735 ... Value is required' in AGS GP svc</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/py-script-runs-in-shell-but-error-000735-value-is/m-p/311427#M10773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Anyone?&amp;nbsp; ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 19:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/py-script-runs-in-shell-but-error-000735-value-is/m-p/311427#M10773</guid>
      <dc:creator>ChristinaKepler</dc:creator>
      <dc:date>2011-05-24T19:20:11Z</dc:date>
    </item>
  </channel>
</rss>

