<?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: ERROR 000622 and ERROR 000628 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-000622-and-error-000628/m-p/1079113#M61769</link>
    <description>&lt;P&gt;The first parameter of both the Add Field and Calculate Field tools should be a table, but you have the first parameter as the geodatabase and the second as the table. Try something like the following:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.management.AddField(os.path.join(gdb_name, "alert_stations"), "alert_level", "SHORT", field_alias="Alert Level")
arcpy.management.AddField(os.path.join(gdb_name, "alert_areas"), ...

arcpy.management.CalculateField(os.path.join(gdb_name, "alert_stations"), "alert_level", "int(!alert!)")
arcpy.management.CalculateField(os.path.join(gdb_name, "alert_areas"), ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 06:54:27 GMT</pubDate>
    <dc:creator>Tim_McGinnes</dc:creator>
    <dc:date>2021-07-15T06:54:27Z</dc:date>
    <item>
      <title>ERROR 000622 and ERROR 000628</title>
      <link>https://community.esri.com/t5/python-questions/error-000622-and-error-000628/m-p/1079088#M61768</link>
      <description>&lt;P&gt;I try to follow tutorial in ESRI training (&lt;A href="https://learn.arcgis.com/en/projects/update-real-time-data-with-python/" target="_blank" rel="noopener"&gt;https://learn.arcgis.com/en/projects/update-real-time-data-with-python/&lt;/A&gt;), but have problem in converting JSON to Feature. I think that my error&amp;nbsp; in lines 38-42 in the script I made. but I don't know the details of where the error is.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="112.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18488iC01EDDF5E1BB3BAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="112.jpg" alt="112.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="111.jpg" style="width: 979px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18487iF91230733111B76C/image-size/large?v=v2&amp;amp;px=999" role="button" title="111.jpg" alt="111.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 05:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000622-and-error-000628/m-p/1079088#M61768</guid>
      <dc:creator>DimasPerceka</dc:creator>
      <dc:date>2021-07-15T05:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000622 and ERROR 000628</title>
      <link>https://community.esri.com/t5/python-questions/error-000622-and-error-000628/m-p/1079113#M61769</link>
      <description>&lt;P&gt;The first parameter of both the Add Field and Calculate Field tools should be a table, but you have the first parameter as the geodatabase and the second as the table. Try something like the following:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.management.AddField(os.path.join(gdb_name, "alert_stations"), "alert_level", "SHORT", field_alias="Alert Level")
arcpy.management.AddField(os.path.join(gdb_name, "alert_areas"), ...

arcpy.management.CalculateField(os.path.join(gdb_name, "alert_stations"), "alert_level", "int(!alert!)")
arcpy.management.CalculateField(os.path.join(gdb_name, "alert_areas"), ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 06:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000622-and-error-000628/m-p/1079113#M61769</guid>
      <dc:creator>Tim_McGinnes</dc:creator>
      <dc:date>2021-07-15T06:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000622 and ERROR 000628</title>
      <link>https://community.esri.com/t5/python-questions/error-000622-and-error-000628/m-p/1079961#M61784</link>
      <description>&lt;P&gt;Thank you very much for your help&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DimasPerceka_0-1626484073627.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18730i20A088FC04DB5D85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DimasPerceka_0-1626484073627.png" alt="DimasPerceka_0-1626484073627.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 01:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000622-and-error-000628/m-p/1079961#M61784</guid>
      <dc:creator>DimasPerceka</dc:creator>
      <dc:date>2021-07-17T01:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000622 and ERROR 000628</title>
      <link>https://community.esri.com/t5/python-questions/error-000622-and-error-000628/m-p/1079969#M61788</link>
      <description>&lt;P&gt;And if i continue to next step, i found this trouble. Here I attach the error and the script that was made.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DimasPerceka_0-1626486074521.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18731iCFBC0E2F53CFED09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DimasPerceka_0-1626486074521.png" alt="DimasPerceka_0-1626486074521.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="DimasPerceka_2-1626486136349.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18733iFB3D38FDAAAFDF6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DimasPerceka_2-1626486136349.png" alt="DimasPerceka_2-1626486136349.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DimasPerceka_3-1626486154576.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18734iF77287D96AF6651D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DimasPerceka_3-1626486154576.png" alt="DimasPerceka_3-1626486154576.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm very happy if you can help me with this problem. Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 01:45:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000622-and-error-000628/m-p/1079969#M61788</guid>
      <dc:creator>DimasPerceka</dc:creator>
      <dc:date>2021-07-17T01:45:37Z</dc:date>
    </item>
  </channel>
</rss>

