<?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 arcpy.GetParameterAsText not working in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-getparameterastext-not-working/m-p/283313#M21878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have recently upgraded to 10.1 and now the a script which I wrote that worked fine in 10.0 is no longer working in 10.1.&amp;nbsp; It appears there is an issue with getting the GetParameterAsText function.&amp;nbsp; Here is there error I am getting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\reacch\scripts\clippedRastoGraph.py", line 6, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon= arcpy.GetParameterAsText(5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\__init__.py", line 592, in GetParameterAsText&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return gp.getParameterAsText(index)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\geoprocessing\_base.py", line 224, in getParameterAsText&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._gp.GetParameterAsText(*gp_fixargs(args, True)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: Object: Error in getting parameter as text&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any idea why I am getting this error with 10.1 when everything was completely fine when running the script in 10.0?&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Jun 2012 18:42:00 GMT</pubDate>
    <dc:creator>StephenFricke</dc:creator>
    <dc:date>2012-06-30T18:42:00Z</dc:date>
    <item>
      <title>arcpy.GetParameterAsText not working</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-getparameterastext-not-working/m-p/283313#M21878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have recently upgraded to 10.1 and now the a script which I wrote that worked fine in 10.0 is no longer working in 10.1.&amp;nbsp; It appears there is an issue with getting the GetParameterAsText function.&amp;nbsp; Here is there error I am getting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\reacch\scripts\clippedRastoGraph.py", line 6, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon= arcpy.GetParameterAsText(5)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\__init__.py", line 592, in GetParameterAsText&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return gp.getParameterAsText(index)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\geoprocessing\_base.py", line 224, in getParameterAsText&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._gp.GetParameterAsText(*gp_fixargs(args, True)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: Object: Error in getting parameter as text&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any idea why I am getting this error with 10.1 when everything was completely fine when running the script in 10.0?&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jun 2012 18:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-getparameterastext-not-working/m-p/283313#M21878</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2012-06-30T18:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.GetParameterAsText not working</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-getparameterastext-not-working/m-p/283314#M21879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the data type of your 6th parameter and what value you are trying to assign it? I would like to reproduce the error locally. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jul 2012 15:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-getparameterastext-not-working/m-p/283314#M21879</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-07-01T15:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.GetParameterAsText not working</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-getparameterastext-not-working/m-p/283315#M21880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was using a shapefile for the parameter.&amp;nbsp; I have also tried other parameter types and received the same error.&amp;nbsp; Let me know if you figure anything out.&amp;nbsp; Thank you!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jul 2012 18:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-getparameterastext-not-working/m-p/283315#M21880</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2012-07-01T18:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.GetParameterAsText not working</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-getparameterastext-not-working/m-p/283316#M21881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you set your parameter as shown below? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]15641[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 02:22:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-getparameterastext-not-working/m-p/283316#M21881</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-07-02T02:22:04Z</dc:date>
    </item>
  </channel>
</rss>

