<?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 GetParameterAsText &amp;amp; GetParameter will not pass alpanumeric value in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/getparameterastext-amp-getparameter-will-not-pass/m-p/1294490#M67759</link>
    <description>&lt;P&gt;Hello everyone, very new to Python. Having a ton of fun and taking it slow. First post:-)&lt;/P&gt;&lt;P&gt;Can't get passed this one for some reason. I am using ArcGIS Pro 3.1.2 and using to NotePad++. I am trying to use GetParameter or GetParameterAsText to pass an alphanumeric value and it just won't go. I have tried to pass as a String and Any Value and continue to get the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please feel free to educate and direct towards resources.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;fc = r'C:\Users\rfitchhorn\Documents\OneDrive - Great Plains Communications\Requests\Vitruvi\Vitruvi Upload\Vitruvi Upload.gdb\Span_230824A_Smile_Station'&lt;BR /&gt;wo = arcpy.GetParameter(0)&lt;BR /&gt;arcpy.management.CalculateField(fc, "Identify", wo)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fitch32_0-1685542678936.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72030i2F6DCE58ECDBB5E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fitch32_0-1685542678936.png" alt="Fitch32_0-1685542678936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fitch32_1-1685542725378.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72031iDFA8B3B57329D7F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fitch32_1-1685542725378.png" alt="Fitch32_1-1685542725378.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fitch32_2-1685542789837.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72032iB1E913A8911570F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fitch32_2-1685542789837.png" alt="Fitch32_2-1685542789837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 14:23:00 GMT</pubDate>
    <dc:creator>Fitch32</dc:creator>
    <dc:date>2023-05-31T14:23:00Z</dc:date>
    <item>
      <title>GetParameterAsText &amp; GetParameter will not pass alpanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/getparameterastext-amp-getparameter-will-not-pass/m-p/1294490#M67759</link>
      <description>&lt;P&gt;Hello everyone, very new to Python. Having a ton of fun and taking it slow. First post:-)&lt;/P&gt;&lt;P&gt;Can't get passed this one for some reason. I am using ArcGIS Pro 3.1.2 and using to NotePad++. I am trying to use GetParameter or GetParameterAsText to pass an alphanumeric value and it just won't go. I have tried to pass as a String and Any Value and continue to get the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please feel free to educate and direct towards resources.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;fc = r'C:\Users\rfitchhorn\Documents\OneDrive - Great Plains Communications\Requests\Vitruvi\Vitruvi Upload\Vitruvi Upload.gdb\Span_230824A_Smile_Station'&lt;BR /&gt;wo = arcpy.GetParameter(0)&lt;BR /&gt;arcpy.management.CalculateField(fc, "Identify", wo)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fitch32_0-1685542678936.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72030i2F6DCE58ECDBB5E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fitch32_0-1685542678936.png" alt="Fitch32_0-1685542678936.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fitch32_1-1685542725378.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72031iDFA8B3B57329D7F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fitch32_1-1685542725378.png" alt="Fitch32_1-1685542725378.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fitch32_2-1685542789837.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72032iB1E913A8911570F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fitch32_2-1685542789837.png" alt="Fitch32_2-1685542789837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 14:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getparameterastext-amp-getparameter-will-not-pass/m-p/1294490#M67759</guid>
      <dc:creator>Fitch32</dc:creator>
      <dc:date>2023-05-31T14:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: GetParameterAsText &amp; GetParameter will not pass alpanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/getparameterastext-amp-getparameter-will-not-pass/m-p/1294507#M67761</link>
      <description>&lt;P&gt;Since its alphanumeric, it should be a string, so it should be arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;The wo variable is being passed to the Calculate field method in the expression spot, so it needs to be an expression in sql form.&amp;nbsp; What do you want to do with the 230824A being passed in?&lt;/P&gt;&lt;P&gt;Check out the docs for &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/calculate-field.htm" target="_blank" rel="noopener"&gt;calculate field&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 14:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getparameterastext-amp-getparameter-will-not-pass/m-p/1294507#M67761</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-05-31T14:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: GetParameterAsText &amp; GetParameter will not pass alpanumeric value</title>
      <link>https://community.esri.com/t5/python-questions/getparameterastext-amp-getparameter-will-not-pass/m-p/1295819#M67792</link>
      <description>&lt;P&gt;Thank you JeffK. Took a bit more reading to understand what I need to do but finally got it. Thanks for the resources!&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 14:59:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getparameterastext-amp-getparameter-will-not-pass/m-p/1295819#M67792</guid>
      <dc:creator>Fitch32</dc:creator>
      <dc:date>2023-06-05T14:59:09Z</dc:date>
    </item>
  </channel>
</rss>

