laptop and a wrench

Bug

Creating a dynamic layer fails when the SQL statement selects a shape column

Portal for ArcGIS
Bug ID Number BUG-000167768
SubmittedMay 23, 2024
Last ModifiedFebruary 13, 2026
Applies toPortal for ArcGIS
Version found10.9.1
Operating SystemWindows Server
Operating System VersionN/A
StatusAs Designed

Additional Information

Provide dataSource.spatialReference when a field list is included in the SELECT statement.

Workaround

1. Add the spatialReference property to the dynamic layer definition if the shape field is explicitly mentioned in the SQL query in this link: https://localhost.esri.com/arcgis/help/en/rest/services-reference/enterprise/data-source-object/#query-table-data-source.

2. Create a database view containing only the necessary columns, then select all columns from that view using the following SQL statement: 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