laptop and a wrench

Bug

Error on a query expression when using the query builder on a joined data using OS authentication schema.

Last Published: April 25, 2019 ArcGIS Pro
Bug ID Number BUG-000121121
SubmittedMarch 22, 2019
Last ModifiedJune 25, 2025
Applies toArcGIS Pro
Version found2.3.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

We apologize that we were unable to address this issue within the current product support cycle.  If the issue continues to affect your work in a supported release, please contact Technical Support.

Workaround

ArcMap

  1. In ArcMap, go to the File tab > Add Data > Add Query Layer.
  2. In the New Query window, connect to a database with OS Authentication user owned data.
  3. Add a name for the QueryLayer (For example: TestQueryLayer)
  4. Insert SQL Query in the Query box.

ArcGIS Pro

  1. In ArcGIS Pro, go to the Map tab > Add Data > Add Query Layer.
  2. In the New Query window, connect to database with OS Authentication user owned data.
  3. Add a name for the QueryLayer (For example: TestQueryLayer)
  4. Insert SQL Query in the Query box.

SQL example including table join:

select a.objectid, a.shape, a.field1, b.field2

from  <server>.<database>.<OS Authentication>.<featureclass> a, 

    <server>.<database>.<OS Authentication>.<datatable> b, 

where  a.OBJECTID = b.id

and b.field2 = 'thing'

 

Ensure to include the ObjectID and Shape fields of the feature class. Use whatever amount of fields needed from the feature class and data tables, "field1" and "field2" are a simplified example.

OR 

Migrate from OS Authentication to Database Authentication.

Steps to Reproduce

Bug ID: BUG-000121121

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