laptop and a wrench

Bug

The error message, "Invalid data type for expression <expression>." is returned when applying a query in a string field for values formatted as '1/1/2021 12:15:59' with hosted feature services in ArcGIS Server 10.9 relational or spatiotemporal ArcGIS Data Store.

Last Published: October 15, 2021 ArcGIS GIS Server
Bug ID Number BUG-000142623
SubmittedSeptember 1, 2021
Last ModifiedJune 13, 2025
Applies toArcGIS GIS Server
Version found10.9
Operating SystemWindows OS
Operating System Version2012 R2
Version Fixed11.0
StatusFixed

Workaround

Prefix the string with 'N'. For example, Where: test = N'1/1/2021 12:15:59'.

Steps to Reproduce

Bug ID: BUG-000142623

Software:

  • ArcGIS GIS Server

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