<?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: python error in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/python-error/m-p/397694#M17660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#1&amp;nbsp; You have !PNAME! as one of the parameters and you are trying to calculate the PNAME field..&amp;nbsp; You can't use the PNAME field to calculate itself&lt;/P&gt;&lt;P&gt;#2&amp;nbsp; Assuming that you have to calculate values into the PNAME field and you need values from 2 fields, you didn't pass in two arguments to the script in the Pname section the expression line&lt;/P&gt;&lt;P&gt;# 3&amp;nbsp; AND you need to remove the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reclass(!Name!, !Pname!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the Code block section.&amp;nbsp; Those lines are not supposed to be included in the code block.&lt;/P&gt;&lt;P&gt;I think you just copied and pasted an example and put some of the wrong things in the wrong place&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2020 10:19:46 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2020-03-25T10:19:46Z</dc:date>
    <item>
      <title>python error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-error/m-p/397693#M17659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi~~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;def Reclass(arg1, arg2):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if arg1 in ["222", "333"]:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return None&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return arg2&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;#code&lt;/DIV&gt;&lt;DIV&gt;Reclass(!NAME!, !PNAME!)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/486177_9999.JPG" /&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #fdfdfd; color: #000000; font-family: Noto Sans,Noto Sans JP,Noto Sans KR,Helvetica,Microsoft YaHei,Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,Dotum,돋움,sans-serif; font-size: 30px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Please see why there is an error.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2020 05:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-error/m-p/397693#M17659</guid>
      <dc:creator>KalSsin</dc:creator>
      <dc:date>2020-03-25T05:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: python error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-error/m-p/397694#M17660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#1&amp;nbsp; You have !PNAME! as one of the parameters and you are trying to calculate the PNAME field..&amp;nbsp; You can't use the PNAME field to calculate itself&lt;/P&gt;&lt;P&gt;#2&amp;nbsp; Assuming that you have to calculate values into the PNAME field and you need values from 2 fields, you didn't pass in two arguments to the script in the Pname section the expression line&lt;/P&gt;&lt;P&gt;# 3&amp;nbsp; AND you need to remove the&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reclass(!Name!, !Pname!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the Code block section.&amp;nbsp; Those lines are not supposed to be included in the code block.&lt;/P&gt;&lt;P&gt;I think you just copied and pasted an example and put some of the wrong things in the wrong place&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2020 10:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-error/m-p/397694#M17660</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-25T10:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: python error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-error/m-p/397695#M17661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Noto Sans,Noto Sans JP,Noto Sans KR,Helvetica,Microsoft YaHei,Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,Dotum,돋움,sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-tap-highlight-color: transparent; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;I haven't figured out where the right place is yet.&lt;/SPAN&gt;&lt;BR style="color: #000000; font-family: Noto Sans,Noto Sans JP,Noto Sans KR,Helvetica,Microsoft YaHei,Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,Dotum,돋움,sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="color: #000000; font-family: Noto Sans,Noto Sans JP,Noto Sans KR,Helvetica,Microsoft YaHei,Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,Dotum,돋움,sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-tap-highlight-color: transparent; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;I'll do a little more research.&lt;/SPAN&gt;&lt;BR style="color: #000000; font-family: Noto Sans,Noto Sans JP,Noto Sans KR,Helvetica,Microsoft YaHei,Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,Dotum,돋움,sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #fdfdfd; color: #000000; font-family: Noto Sans,Noto Sans JP,Noto Sans KR,Helvetica,Microsoft YaHei,Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,Dotum,돋움,sans-serif; font-size: 18px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;It's a little difficult.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR style="color: #000000; font-family: Noto Sans,Noto Sans JP,Noto Sans KR,Helvetica,Microsoft YaHei,Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,Dotum,돋움,sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" /&gt;&lt;SPAN style="color: #000000; font-family: Noto Sans,Noto Sans JP,Noto Sans KR,Helvetica,Microsoft YaHei,Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,Dotum,돋움,sans-serif; font-size: 24px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-tap-highlight-color: transparent; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px;"&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2020 15:02:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-error/m-p/397695#M17661</guid>
      <dc:creator>KalSsin</dc:creator>
      <dc:date>2020-03-25T15:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: python error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/python-error/m-p/397696#M17662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hoping that wasn't you downvoting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2020 15:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/python-error/m-p/397696#M17662</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-25T15:27:13Z</dc:date>
    </item>
  </channel>
</rss>

