laptop and a wrench

Bug

The Select By Attributes tool fails to generate the correct SQL syntax when a field’s domain code contains a single quotation mark, causing it to return the ‘Error 000358: Invalid expression’ error message.

ArcGIS Pro
Bug ID Number BUG-000181347
SubmittedDecember 2, 2025
Last ModifiedDecember 11, 2025
Applies toArcGIS Pro
Version found3.3.7
Operating SystemWindows Server
Operating System Version2022
StatusNon-Reproducible

Additional Information

This issue has been tested and is not reproducible in the latest version of ArcGIS Pro 3.6.

Workaround

Enable SQL mode and manually escape the string by adding the second single quotation mark:

'Castel D''Azzano'.

Steps to Reproduce

Bug ID: BUG-000181347

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options