laptop and a wrench

Bug

Unable to create a dynamic layer with an SQL statement that selects a shape column.

Portal for ArcGIS
Bug ID Number BUG-000167768
SubmittedMay 23, 2024
Last ModifiedDecember 16, 2025
Applies toPortal for ArcGIS
Version found10.9.1
Operating SystemWindows Server
Operating System VersionN/A
StatusIn Product Plan

Workaround

Include 'spatialReference' property in the dynamic layer definition when shape field is explicitly mentioned in the SQL query https://localhost.esri.com/arcgis/help/en/rest/services-reference/enterprise/data-source-object/#query-table-data-source

Create a database view with only the columns needed, then select all columns from the created view using SELECT * FROM VIEW_NAME.

Steps to Reproduce

Bug ID: BUG-000167768

Software:

  • Portal for ArcGIS

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