Select to view content in your preferred language

ArcGIS Data Pipelines - Filter by Attribute - Ignoring Strings with Apostrophes

77
1
Thursday
Labels (3)
michelle-maps
Occasional Contributor

Hello,

I recently noticed what I believe is a bug with the Filter by Attributes tool in Data Pipelines.

I have a string field that I would like to filter my source table by. Some of the records have an apostrophe in the name (for example, Lowe's Home Improvement)

I am able to find these records in the dropdown options in the SQL builder interface. However, when I preview or run the Data Pipeline, it doesn't return any records. 

michellemaps_1-1754604955523.png

michellemaps_2-1754604997029.png

These records do in fact live in the source dataset. Below is a screenshot of the # of records I would expect it to return (from our Snowflake environment).

michellemaps_3-1754605299851.png

 

Edited to Add:

It looks like (at least on the front end tooltip...) that the SQL query is properly using the double apostrophe for these records. Perhaps this logic is missing from the actual query on the backend?

michellemaps_0-1754605965177.png

 

  

Tags (4)
0 Kudos
1 Reply
VenkataKondepati
Emerging Contributor

Hi @michelle-maps,

You’re likely hitting an apostrophe/quote normalization bug—or a character mismatch.

Quick checks first:

  • Copy the apostrophe from the record into a text inspector and confirm it’s ASCII ' (U+0027) and not a curly (U+2019). Mixed quotes will show in the dropdown but won’t match at runtime.

  • Try an ILIKE/LIKE filter to bypass the exact quote:
    NAME ILIKE 'Lowe%s Home Improvement'

  • If Pipelines supports expressions, normalize then filter:
    REGEXP_REPLACE(NAME, '[\u2019\u02BC\u2032]', '''') = 'Lowe''s Home Improvement'

  • Or build the literal without escaping:
    NAME = CONCAT('Lowe', '''', 's Home Improvement')

If those work but = with the raw value still returns 0, it’s a backend escaping bug. Capture the minimal repro (field, value, data source) and open a case. Meanwhile, stick to LIKE/ILIKE or do a one-step normalize → filter in the pipeline.

Regards,

Venkat

0 Kudos