<?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 Exception: JSONObject[&amp;quot;attributes&amp;quot;] not found. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-jsonobject-quot-attributes-quot-not/m-p/1285628#M8650</link>
    <description>&lt;P&gt;Exception is in the title. I'm trying to script automated updating of a hosted table in our portal service but when I go to add a new row this is what I get. Any advice? Relevant code is below.&lt;/P&gt;&lt;PRE&gt;    for meter in z_met:
        # print(meter)
        m = meter[:3]
        m = m.rstrip()
        # print(m)
        row = {
            "constrno2": m,
            "forward_flow": z_met[meter][0],
            "reverse_flow": z_met[meter][1],
            "date_": date.today()
        }

        if row["forward_flow"] == row["reverse_flow"]:
            row["status"] = 1
        else:
            row["status"] = 0

        print(row)

        table_layer.edit_features(adds=[row]) #where the exception is raised&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Also the error code from the server is 500 if that helps.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 13:27:28 GMT</pubDate>
    <dc:creator>ColeHowell</dc:creator>
    <dc:date>2023-05-04T13:27:28Z</dc:date>
    <item>
      <title>Exception: JSONObject["attributes"] not found.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-jsonobject-quot-attributes-quot-not/m-p/1285628#M8650</link>
      <description>&lt;P&gt;Exception is in the title. I'm trying to script automated updating of a hosted table in our portal service but when I go to add a new row this is what I get. Any advice? Relevant code is below.&lt;/P&gt;&lt;PRE&gt;    for meter in z_met:
        # print(meter)
        m = meter[:3]
        m = m.rstrip()
        # print(m)
        row = {
            "constrno2": m,
            "forward_flow": z_met[meter][0],
            "reverse_flow": z_met[meter][1],
            "date_": date.today()
        }

        if row["forward_flow"] == row["reverse_flow"]:
            row["status"] = 1
        else:
            row["status"] = 0

        print(row)

        table_layer.edit_features(adds=[row]) #where the exception is raised&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Also the error code from the server is 500 if that helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 13:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-jsonobject-quot-attributes-quot-not/m-p/1285628#M8650</guid>
      <dc:creator>ColeHowell</dc:creator>
      <dc:date>2023-05-04T13:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exception: JSONObject["attributes"] not found.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-jsonobject-quot-attributes-quot-not/m-p/1285659#M8651</link>
      <description>&lt;P&gt;Solution was I forgot to add the attribute key to the dictionary I was passing to the edit_features method.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 14:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/exception-jsonobject-quot-attributes-quot-not/m-p/1285659#M8651</guid>
      <dc:creator>ColeHowell</dc:creator>
      <dc:date>2023-05-04T14:08:46Z</dc:date>
    </item>
  </channel>
</rss>

