laptop and a wrench

Error

The error message, "Invalid Expression" is returned when using Select Layer by Attribute with large query expressions.

Última publicación: September 22, 2021 ArcGIS Pro
Número de ID del error BUG-000141724
EnviadoJuly 27, 2021
Última modificaciónApril 11, 2025
Relacionado conArcGIS Pro
Versión encontrada2.8
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoKnown Limit

Información adicional

Use the IN clause to shorten the length of the WHERE clause.

Solución alternativa

  1. Open the project in ArcGIS Pro.
  2. Open the Select By Attributes tool.
  3. Under Expression, click the Edit SQL mode button to switch to the SQL mode.
  4. In Expression, in the first line, type the following formula: GLOBALID IN (.
    1. Press Enter twice. 
    2. Copy all the Global IDs and paste them into the Expression box. 
    3. Press Enter twice.
    4. Type ).
  5. The Select By Attributes tool works successfully for all 5000 records and generates complete results.

Pasos para reproducir

ID del error: BUG-000141724

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga