<?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 Python Script Not Working Anymore: Join + Field Calculate on HFC in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/python-script-not-working-anymore-join-field/m-p/1539708#M61542</link>
    <description>&lt;P&gt;I have been using a series of Python scripts to update fields in a parent hosted feature layer by joining a related child hosted feature layer to the parent, and doing field calculation.&amp;nbsp; The goal is to get like "inspection" type data from the child layers pushed back up into the parent layer.&amp;nbsp; It had been working great, consistently.&amp;nbsp; I recently got a new computer and re-installed, and now it doesnt work.&amp;nbsp; In some cases, it runs successfully but no attributes are updated. In others, it just spins for a longer time than needed and nothing happens. Script is attached.&lt;/P&gt;&lt;P&gt;Some background:&lt;/P&gt;&lt;P&gt;The hosted feature layer is a group of 3 HFC with a 1:M relationship between parent and child.&amp;nbsp; The script only grabs the most recent records from the child layer to field calculate.&amp;nbsp; There are 3 other layers like this that I run scripts for, all of which had been working (just plugged in different Item IDs, HFC names, and field names into this same format.&lt;/P&gt;&lt;P&gt;Some things I've tried:&lt;/P&gt;&lt;P&gt;I am certain I have editing privileges.&amp;nbsp; The layer permissions have not changed.&amp;nbsp; I can edit in Pro, and have edited all this time before.&amp;nbsp; I added a script with lots of debugging, and it claims I dont have editing privileges but that is wrong.&amp;nbsp; I have also tried direct login instead of "Pro".&amp;nbsp; I have also ran the script from the python window rather than from the toolbox which I usually do.&amp;nbsp; All of it produces the same result of not changing anything.&amp;nbsp; I have verified that the key field upon which the join is based (GlobalID and ParentGUID) are all working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some questions:&lt;/P&gt;&lt;P&gt;Is the script just no longer properly accessing AGOL because of the new software install? Did any new updates come down that may change this? Is there some environment setting I am unaware of?&amp;nbsp; How is this possible lol.&amp;nbsp; I appreciate any help I can get!&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 21:10:29 GMT</pubDate>
    <dc:creator>GIS_Consultant_ASE</dc:creator>
    <dc:date>2024-09-17T21:10:29Z</dc:date>
    <item>
      <title>Python Script Not Working Anymore: Join + Field Calculate on HFC</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-script-not-working-anymore-join-field/m-p/1539708#M61542</link>
      <description>&lt;P&gt;I have been using a series of Python scripts to update fields in a parent hosted feature layer by joining a related child hosted feature layer to the parent, and doing field calculation.&amp;nbsp; The goal is to get like "inspection" type data from the child layers pushed back up into the parent layer.&amp;nbsp; It had been working great, consistently.&amp;nbsp; I recently got a new computer and re-installed, and now it doesnt work.&amp;nbsp; In some cases, it runs successfully but no attributes are updated. In others, it just spins for a longer time than needed and nothing happens. Script is attached.&lt;/P&gt;&lt;P&gt;Some background:&lt;/P&gt;&lt;P&gt;The hosted feature layer is a group of 3 HFC with a 1:M relationship between parent and child.&amp;nbsp; The script only grabs the most recent records from the child layer to field calculate.&amp;nbsp; There are 3 other layers like this that I run scripts for, all of which had been working (just plugged in different Item IDs, HFC names, and field names into this same format.&lt;/P&gt;&lt;P&gt;Some things I've tried:&lt;/P&gt;&lt;P&gt;I am certain I have editing privileges.&amp;nbsp; The layer permissions have not changed.&amp;nbsp; I can edit in Pro, and have edited all this time before.&amp;nbsp; I added a script with lots of debugging, and it claims I dont have editing privileges but that is wrong.&amp;nbsp; I have also tried direct login instead of "Pro".&amp;nbsp; I have also ran the script from the python window rather than from the toolbox which I usually do.&amp;nbsp; All of it produces the same result of not changing anything.&amp;nbsp; I have verified that the key field upon which the join is based (GlobalID and ParentGUID) are all working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some questions:&lt;/P&gt;&lt;P&gt;Is the script just no longer properly accessing AGOL because of the new software install? Did any new updates come down that may change this? Is there some environment setting I am unaware of?&amp;nbsp; How is this possible lol.&amp;nbsp; I appreciate any help I can get!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 21:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-script-not-working-anymore-join-field/m-p/1539708#M61542</guid>
      <dc:creator>GIS_Consultant_ASE</dc:creator>
      <dc:date>2024-09-17T21:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script Not Working Anymore: Join + Field Calculate on HFC</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/python-script-not-working-anymore-join-field/m-p/1540246#M61566</link>
      <description>&lt;P&gt;I am interested in your workflow. I do an identical task. I prototyped it in Pro and then moved it to a Notebook online. I could not use arcpy online, only arcgis so I found Pandas did help. If you get feedback that you don't have edit rights reported then I would take notice. I get this sort of thing, such as arcpy.Exists() not finding a file. Note that Esri has just completely revamped user roles, licencing, permissions. Have a look at the new system. Are you the owner of the FeatureLayers?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 06:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/python-script-not-working-anymore-join-field/m-p/1540246#M61566</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2024-09-19T06:26:10Z</dc:date>
    </item>
  </channel>
</rss>

