laptop and a wrench

Bug

When creating a JoinTableDataSource with a DynamicMapLayer and a QueryTableDataSource, columns from the DynamicMapLayer have a random table name.

Last Published: January 25, 2021 ArcGIS API for JavaScript
Bug ID Number BUG-000135332
SubmittedNovember 11, 2020
Last ModifiedJanuary 25, 2021
Applies toArcGIS API for JavaScript
Version found4.17
Operating SystemWindows
Operating System Version10
StatusIn Product Plan

Workaround

Option 1:

Set the rightTableSource to a TableDataSource instead of a QueryTableDataSource. However, the entire table is joined by performing this. Refer to:

  • TableDataSource: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#TableDataSource
  • QueryTableDataSource: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#QueryTableDataSource

Option 2:

The random column names from the DynamicMapLayer for further steps such as query are in the 'fields' of the Sublayer. Refer to:

  • Sublayer.fields: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Sublayer.html#fields

Steps to Reproduce

Bug ID: BUG-000135332

Software:

  • ArcGIS API for JavaScript

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