<?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: Append Tool ignores SQL expression in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1700899#M103097</link>
    <description>&lt;P&gt;Your filter may not be excluding what you think (spaces vs NULLs).&amp;nbsp; SHORTNAME IS NOT NULL only excludes NULL values.&amp;nbsp; It will not exclude empty spaces or strings that are just spaces.&amp;nbsp; NAME &amp;lt;&amp;gt; ' ' excludes exactly one space and will still allow an empty string, two spaces, etc.&amp;nbsp; So your source features can still pass the filter and then append blank/NULL values into the target, overwriting existing values.&amp;nbsp; Try filtering with something that excludes both NULL and "blank-ish" strings.&amp;nbsp; For example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;SHORTNAME IS NOT NULL AND TRIM(SHORTNAME) &amp;lt;&amp;gt; '' or NAME IS NOT NULL AND TRIM (NAME) &amp;lt;&amp;gt; ''&lt;BR /&gt;&lt;BR /&gt;There is a&amp;nbsp;&lt;A href="https://support.esri.com/en-us/bug/when-running-the-append-data-management-tool-and-select-bug-000157944" target="_blank"&gt;BUG-000157944 for ArcGIS Pro&lt;/A&gt;&amp;nbsp;that was fixed at 3.7 that may be related as well.&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2026 15:46:05 GMT</pubDate>
    <dc:creator>Robert_LeClair</dc:creator>
    <dc:date>2026-05-08T15:46:05Z</dc:date>
    <item>
      <title>Append Tool ignores SQL expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1700833#M103089</link>
      <description>&lt;P&gt;Hi, I'm using the append tool to update some data. I have entered an sql expression to filter the input data, but the tool completely ignored it and updated all records!&lt;/P&gt;&lt;P&gt;In one case the expression was "NAME &amp;lt;&amp;gt; ' '", in another "SHORTNAME IS NOT NULL". Both resulted in records being overwritten with blanks and nulls, respectively.&lt;/P&gt;&lt;P&gt;I'm also using a field map and a matching field.&lt;/P&gt;&lt;P&gt;Feature classes are in different geodatabases, editor tracking is active on the target feature class. Using AGP 3.6.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also: It would be great if there was an update tool, without the insert, or an option within the append tool to disable insert (though the tool name would be misleading in that case). I keep deleting the inserted rows because I only want the update.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 09:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1700833#M103089</guid>
      <dc:creator>FranziskaSumpf</dc:creator>
      <dc:date>2026-05-08T09:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Append Tool ignores SQL expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1700899#M103097</link>
      <description>&lt;P&gt;Your filter may not be excluding what you think (spaces vs NULLs).&amp;nbsp; SHORTNAME IS NOT NULL only excludes NULL values.&amp;nbsp; It will not exclude empty spaces or strings that are just spaces.&amp;nbsp; NAME &amp;lt;&amp;gt; ' ' excludes exactly one space and will still allow an empty string, two spaces, etc.&amp;nbsp; So your source features can still pass the filter and then append blank/NULL values into the target, overwriting existing values.&amp;nbsp; Try filtering with something that excludes both NULL and "blank-ish" strings.&amp;nbsp; For example:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;SHORTNAME IS NOT NULL AND TRIM(SHORTNAME) &amp;lt;&amp;gt; '' or NAME IS NOT NULL AND TRIM (NAME) &amp;lt;&amp;gt; ''&lt;BR /&gt;&lt;BR /&gt;There is a&amp;nbsp;&lt;A href="https://support.esri.com/en-us/bug/when-running-the-append-data-management-tool-and-select-bug-000157944" target="_blank"&gt;BUG-000157944 for ArcGIS Pro&lt;/A&gt;&amp;nbsp;that was fixed at 3.7 that may be related as well.&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 15:46:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1700899#M103097</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2026-05-08T15:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Append Tool ignores SQL expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1700960#M103098</link>
      <description>&lt;P&gt;I'm able to reproduce this with a simple SQL Query (is not null) and matching field for update. As a potential workaround, can you try Select Layer By Attribute on the input data and use that selection instead of the SQL query in the Append tool?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KevinSaavedra_0-1778262099173.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/152218iC46AC2795A69EE69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KevinSaavedra_0-1778262099173.png" alt="KevinSaavedra_0-1778262099173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2026 17:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1700960#M103098</guid>
      <dc:creator>KevinSaavedra</dc:creator>
      <dc:date>2026-05-08T17:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Append Tool ignores SQL expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1701119#M103112</link>
      <description>&lt;P&gt;My SQL queries are correct. One field has a lot of nulls, on those weren't filtered out. Another field has a lot of blanks, just singe spaces (I used the drop down in the expression builder), and those weren't filtered out either. And this were different runs of the tool, combining both expressions.&lt;/P&gt;&lt;P&gt;The bug does not seem to apply, either. I have used the tool quite a lot recently, always with a field map, and it worked like a charm (except when I need an sql query). I also don't know if the field map makes a difference in my case. The data just happens do be very chaotic with lot of different field names for the same thing.&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 06:31:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1701119#M103112</guid>
      <dc:creator>FranziskaSumpf</dc:creator>
      <dc:date>2026-05-11T06:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Append Tool ignores SQL expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1701188#M103119</link>
      <description>&lt;P&gt;Have you tried it without the matching field option?&lt;/P&gt;&lt;P&gt;Since you say you are deleting the appended rows, I assume they are not initially in the target dataset.&lt;BR /&gt;I'm wondering if you SQL&amp;nbsp; expression is working, but, the matching field option is then 'updating' the filtered out rows since they are 'missing' in the target.&lt;/P&gt;&lt;P&gt;If this is the case, testing without the matching field option would not append the blank/null value rows.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2026 14:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1701188#M103119</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2026-05-11T14:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Append Tool ignores SQL expression</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1701465#M103135</link>
      <description>&lt;P&gt;Interesting idea. But the appended rows are not those I filter out with the sql. What you describe is a different scenario than mine.&lt;/P&gt;&lt;P&gt;There are indeed records missing in the target data, because I ran the Delete Identical GP tool (they were identical except for the FIXED_ID that I had added in an earlier step). So of course I don't want to reinsert those duplicates, but I need to update the other records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To understand what I am doing: I have point features in about 90 different feature classes, with different schemas, and containing duplicates (i. e. some points from one feature have duplicates in one or several other feature classes). I have to make heads and tails of the data and check them against our own database. In a first step, I merged all feature classes into one, keeping only fields that seemed important, and then I manually reduced the number of fields further (e. g. fields named "BEZ", "Name", Name_", "Bezeichn" etc. all mean the same thing, so I merged them into just one field). I had also added a continuous ID across all feature classes, and a field with the name of the feature class, so I can trace everything back to the original source data. I then ran the Delete Identical GP tool to get rid of duplicates, before checking the points against our own data. While checking, I sometimes find that some data did not come across in the merge. In order to get these information into the merged feature class, I use the Append GP tool, but what I actually need is just the Update. I usually don't need an sql query to filter the source data, but sometimes the source data itself is inconsistent, and half of the features have the relevant information in one field (e.g. "SHORTNAME"), and the other half in another (e.g. "NAME"). I tried to concatenate in the field map, but this did not work (I think it was because SHORTNAME is null when it's not filled in).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure, there are multiple workarounds I can use, but the issue remains, that the Append tool just ignores an input parameter. To me, that is a bug, and it should be fixed.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2026 08:15:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/append-tool-ignores-sql-expression/m-p/1701465#M103135</guid>
      <dc:creator>FranziskaSumpf</dc:creator>
      <dc:date>2026-05-12T08:15:50Z</dc:date>
    </item>
  </channel>
</rss>

