<?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 Populate field in SP layer based on nearest Pole in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/populate-field-in-sp-layer-based-on-nearest-pole/m-p/1624027#M4089</link>
    <description>&lt;P&gt;Good afternoon ESRI Community,&lt;/P&gt;&lt;P&gt;I have created a model that references two layers in a versioned enterprise SDE, named SP and FSA, and one layer from a non-versioned, read-only SDE named Pole.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea is for this to be run as a geoprocessing tool where an end user selects an FSA on the map, and the tool populates all SP's with a subtype of 30 within the FSA with the nearest Pole number in the "SID" field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="emoreno_0-1750102159733.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134450i84C39E363B4434CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="emoreno_0-1750102159733.png" alt="emoreno_0-1750102159733.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I tried doing so using the generate near table tool, as seen above, and got error 00049: table is not editable during the Calculate Field. I also tried creating a model using the near tool, and got the same error when the near ran. Finally, I attempted to use Add Spatial Join, but am having issues with the intermediate layer remaining the scratch GDB despite telling the model to delete it after running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="emoreno_1-1750102585904.png" style="width: 641px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134453i42241BD1844AEB06/image-dimensions/641x135?v=v2" width="641" height="135" role="button" title="emoreno_1-1750102585904.png" alt="emoreno_1-1750102585904.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas as to what I may be doing wrong, or perhaps if there is another method that would be better to complete this workflow? I am in my version and an edit session when attempting to run these tools. Any assistance is appreciated. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jun 2025 19:38:48 GMT</pubDate>
    <dc:creator>emoreno</dc:creator>
    <dc:date>2025-06-16T19:38:48Z</dc:date>
    <item>
      <title>Populate field in SP layer based on nearest Pole</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/populate-field-in-sp-layer-based-on-nearest-pole/m-p/1624027#M4089</link>
      <description>&lt;P&gt;Good afternoon ESRI Community,&lt;/P&gt;&lt;P&gt;I have created a model that references two layers in a versioned enterprise SDE, named SP and FSA, and one layer from a non-versioned, read-only SDE named Pole.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea is for this to be run as a geoprocessing tool where an end user selects an FSA on the map, and the tool populates all SP's with a subtype of 30 within the FSA with the nearest Pole number in the "SID" field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="emoreno_0-1750102159733.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134450i84C39E363B4434CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="emoreno_0-1750102159733.png" alt="emoreno_0-1750102159733.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I tried doing so using the generate near table tool, as seen above, and got error 00049: table is not editable during the Calculate Field. I also tried creating a model using the near tool, and got the same error when the near ran. Finally, I attempted to use Add Spatial Join, but am having issues with the intermediate layer remaining the scratch GDB despite telling the model to delete it after running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="emoreno_1-1750102585904.png" style="width: 641px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/134453i42241BD1844AEB06/image-dimensions/641x135?v=v2" width="641" height="135" role="button" title="emoreno_1-1750102585904.png" alt="emoreno_1-1750102585904.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas as to what I may be doing wrong, or perhaps if there is another method that would be better to complete this workflow? I am in my version and an edit session when attempting to run these tools. Any assistance is appreciated. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jun 2025 19:38:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/populate-field-in-sp-layer-based-on-nearest-pole/m-p/1624027#M4089</guid>
      <dc:creator>emoreno</dc:creator>
      <dc:date>2025-06-16T19:38:48Z</dc:date>
    </item>
  </channel>
</rss>

