<?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 Calculate geometry deletes any feature classes NOT in the parameters in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculate-geometry-deletes-any-feature-classes-not/m-p/193469#M14847</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing four tools to calculate X and Y coordinates in Northing/Easting then create a spatial ID based off of those coordinates. Each one will be stormpoint, stormline, sewerpoint, sewerline. So far, everything works exactly as planned except the part where &lt;EM&gt;CalculateGeometryAttributes_management&amp;nbsp;&lt;/EM&gt;deletes any layer that it&amp;nbsp;&lt;EM&gt;doesn't&amp;nbsp;&lt;/EM&gt;work on. So if I have 5 stormwater point feature classes and input two it will delete the other three entirely. And just as a sanity check, I made sure that no other part of this code deletes entire feature classes when the tool runs. It produces this error since it can&amp;nbsp; no longer find any data in the tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/459408_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c792ea;"&gt;class &lt;/SPAN&gt;&lt;SPAN style="color: #ffcb6b;"&gt;StormPointAttribution&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;object&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;def &lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;__init__&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;label &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Stormwater Point Attribution"
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;description &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Calculates geo-spatial coordinates and spatial/facility IDs where applicable"
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;category &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Attribution"
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;canRunInBackground &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;True
&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;    def &lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;getParameterInfo&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;input_storm_points &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;arcpy&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;Parameter&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;displayName&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Input Storm Point Features"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"input_storm_points"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;datatype&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"GPFeatureLayer"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;parameterType&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Required"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;direction&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Input"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;multiValue&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        )
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;input_storm_points&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;filter&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;list &lt;SPAN style="color: #89ddff;"&gt;= [&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Point"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;]
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;params &lt;SPAN style="color: #89ddff;"&gt;= [&lt;/SPAN&gt;input_storm_points&lt;SPAN style="color: #89ddff;"&gt;, ]
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;return &lt;/SPAN&gt;params

    &lt;SPAN style="color: #c792ea;"&gt;def &lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;execute&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;parameters&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Define input parameters as a list
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;        &lt;/SPAN&gt;input_layers &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;parameters&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;].&lt;/SPAN&gt;valueAsText&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;split&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;";"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Loop through every input layer
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;for &lt;/SPAN&gt;input_layer &lt;SPAN style="color: #c792ea;"&gt;in &lt;/SPAN&gt;input_layers&lt;SPAN style="color: #89ddff;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;if &lt;/SPAN&gt;input_layer&lt;SPAN style="color: #89ddff;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Variables
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;                &lt;/SPAN&gt;arcpy&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;env&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;r"C:\Users\jtjohnson\Documents\ArcGIS\Projects\City of Springfield -  Sewer Network\City of Springfield -  Sewer " &lt;/SPAN&gt;\
                                                       &lt;SPAN style="color: #c3e88d;"&gt;r"Network.gdb"
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;                &lt;/SPAN&gt;spatial_id_point &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;r"str(int(!NAD83X!))[2:4] + str(int(!NAD83Y!))[2:4] + '-' + str(int(!NAD83X!))[4] + str(int(!NAD83Y!))[4] + '-' + " &lt;/SPAN&gt;\
                                   &lt;SPAN style="color: #c3e88d;"&gt;r"str(int(!NAD83X!))[-2:] + str(int(!NAD83Y!))[-2:]"
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Takes the input layer and separates it into a usable string for calculation input
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;addMessage&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"{0}"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;input_layer&lt;SPAN style="color: #89ddff;"&gt;))
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;input_layer &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;input_layer&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;split&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"&lt;/SPAN&gt;\\&lt;SPAN style="color: #c3e88d;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)[&lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;].&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"'"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, )
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;addMessage&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"{0}"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;input_layer&lt;SPAN style="color: #89ddff;"&gt;))
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# &lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;TODO: Select only newer data
&lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;                &lt;/SPAN&gt;selected &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;arcpy&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;SelectLayerByAttribute_management&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;input_layer&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, )
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Calculate geometrical attributes
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;                # &lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;TODO: Make this not delete everything
&lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;                &lt;/SPAN&gt;arcpy&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;CalculateGeometryAttributes_management&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;selected&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"NAD83X POINT_X;NAD83Y POINT_Y"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;addMessage&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"GEO COMPLETE"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Calculate Spatial ID and Facility ID
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;                # &lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;TODO: Add the rest of the fields
&lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;                &lt;/SPAN&gt;arcpy&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;CalculateField_management&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;selected&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"FACILITYID"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;spatial_id_point&lt;SPAN style="color: #89ddff;"&gt;, )
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;addMessage&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"ATT COMPLETE"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;return &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;addMessage&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Finished"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 09:42:18 GMT</pubDate>
    <dc:creator>JakeJohnson</dc:creator>
    <dc:date>2021-12-11T09:42:18Z</dc:date>
    <item>
      <title>Calculate geometry deletes any feature classes NOT in the parameters</title>
      <link>https://community.esri.com/t5/python-questions/calculate-geometry-deletes-any-feature-classes-not/m-p/193469#M14847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing four tools to calculate X and Y coordinates in Northing/Easting then create a spatial ID based off of those coordinates. Each one will be stormpoint, stormline, sewerpoint, sewerline. So far, everything works exactly as planned except the part where &lt;EM&gt;CalculateGeometryAttributes_management&amp;nbsp;&lt;/EM&gt;deletes any layer that it&amp;nbsp;&lt;EM&gt;doesn't&amp;nbsp;&lt;/EM&gt;work on. So if I have 5 stormwater point feature classes and input two it will delete the other three entirely. And just as a sanity check, I made sure that no other part of this code deletes entire feature classes when the tool runs. It produces this error since it can&amp;nbsp; no longer find any data in the tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/459408_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #c792ea;"&gt;class &lt;/SPAN&gt;&lt;SPAN style="color: #ffcb6b;"&gt;StormPointAttribution&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;object&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;def &lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;__init__&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;label &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Stormwater Point Attribution"
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;description &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Calculates geo-spatial coordinates and spatial/facility IDs where applicable"
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;category &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Attribution"
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;canRunInBackground &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;True
&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;    def &lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;getParameterInfo&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;input_storm_points &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;arcpy&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;Parameter&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;displayName&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Input Storm Point Features"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"input_storm_points"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;datatype&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"GPFeatureLayer"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;parameterType&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Required"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;direction&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Input"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;multiValue&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        )
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;input_storm_points&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;filter&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;list &lt;SPAN style="color: #89ddff;"&gt;= [&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Point"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;]
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;params &lt;SPAN style="color: #89ddff;"&gt;= [&lt;/SPAN&gt;input_storm_points&lt;SPAN style="color: #89ddff;"&gt;, ]
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;return &lt;/SPAN&gt;params

    &lt;SPAN style="color: #c792ea;"&gt;def &lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;execute&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;parameters&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;):
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Define input parameters as a list
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;        &lt;/SPAN&gt;input_layers &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;parameters&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;].&lt;/SPAN&gt;valueAsText&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;split&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;";"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Loop through every input layer
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;        &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;for &lt;/SPAN&gt;input_layer &lt;SPAN style="color: #c792ea;"&gt;in &lt;/SPAN&gt;input_layers&lt;SPAN style="color: #89ddff;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;if &lt;/SPAN&gt;input_layer&lt;SPAN style="color: #89ddff;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Variables
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;                &lt;/SPAN&gt;arcpy&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;env&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;r"C:\Users\jtjohnson\Documents\ArcGIS\Projects\City of Springfield -  Sewer Network\City of Springfield -  Sewer " &lt;/SPAN&gt;\
                                                       &lt;SPAN style="color: #c3e88d;"&gt;r"Network.gdb"
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;                &lt;/SPAN&gt;spatial_id_point &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;r"str(int(!NAD83X!))[2:4] + str(int(!NAD83Y!))[2:4] + '-' + str(int(!NAD83X!))[4] + str(int(!NAD83Y!))[4] + '-' + " &lt;/SPAN&gt;\
                                   &lt;SPAN style="color: #c3e88d;"&gt;r"str(int(!NAD83X!))[-2:] + str(int(!NAD83Y!))[-2:]"
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Takes the input layer and separates it into a usable string for calculation input
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;addMessage&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"{0}"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;input_layer&lt;SPAN style="color: #89ddff;"&gt;))
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;input_layer &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;input_layer&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;split&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"&lt;/SPAN&gt;\\&lt;SPAN style="color: #c3e88d;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)[&lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;].&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;replace&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"'"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, )
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;addMessage&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"{0}"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;input_layer&lt;SPAN style="color: #89ddff;"&gt;))
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# &lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;TODO: Select only newer data
&lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;                &lt;/SPAN&gt;selected &lt;SPAN style="color: #89ddff;"&gt;= &lt;/SPAN&gt;arcpy&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;SelectLayerByAttribute_management&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;input_layer&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, )
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Calculate geometrical attributes
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;                # &lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;TODO: Make this not delete everything
&lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;                &lt;/SPAN&gt;arcpy&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;CalculateGeometryAttributes_management&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;selected&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"NAD83X POINT_X;NAD83Y POINT_Y"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;addMessage&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"GEO COMPLETE"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;# Calculate Spatial ID and Facility ID
&lt;/SPAN&gt;&lt;SPAN style="color: #616161;"&gt;                # &lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;TODO: Add the rest of the fields
&lt;/SPAN&gt;&lt;SPAN style="color: #ffeb95;"&gt;                &lt;/SPAN&gt;arcpy&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;CalculateField_management&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;selected&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"FACILITYID"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;, &lt;/SPAN&gt;spatial_id_point&lt;SPAN style="color: #89ddff;"&gt;, )
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;addMessage&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"ATT COMPLETE"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;:
&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color: #c792ea;"&gt;return &lt;/SPAN&gt;&lt;SPAN style="color: #f78c6c;"&gt;messages&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #82aaff;"&gt;addMessage&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c3e88d;"&gt;"Finished"&lt;/SPAN&gt;&lt;SPAN style="color: #89ddff;"&gt;)
&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-geometry-deletes-any-feature-classes-not/m-p/193469#M14847</guid>
      <dc:creator>JakeJohnson</dc:creator>
      <dc:date>2021-12-11T09:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate geometry deletes any feature classes NOT in the parameters</title>
      <link>https://community.esri.com/t5/python-questions/calculate-geometry-deletes-any-feature-classes-not/m-p/193470#M14848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update: Progress is slow but I have figured out the reason for this issue. &lt;EM&gt;arcpy.CalculateGeometryAttributes_management&lt;/EM&gt; does not play well with multivalue inputs. No matter what I do it will not accept any parameters with multiValue=True. For now, I created a separate tool and removed multivalue functionality. That leads me to an entirely other issue... I have a dozen layers I want to programmatically attribute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2019 19:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculate-geometry-deletes-any-feature-classes-not/m-p/193470#M14848</guid>
      <dc:creator>JakeJohnson</dc:creator>
      <dc:date>2019-09-16T19:47:42Z</dc:date>
    </item>
  </channel>
</rss>

