English

Problem: Unable to load custom widgets in ArcGIS Dashboards

Description

When transitioning to ArcGIS Dashboards, custom widgets created in ArcGIS Dashboards Classic do not function as expected. The widgets load indefinitely when viewed in ArcGIS Dashboards, and the following error returns:

Error:
Data source error
Data source error displayed on widgets

Cause

Widgets created for ArcGIS Dashboards Classic uses ArcGIS API for JavaScript version 3.x or lower. ArcGIS Dashboards only supports ArcGIS API for JavaScript version 4.x. This causes compatibility issues for widgets created in ArcGIS Dashboards Classic with ArcGIS Dashboards and vice versa.

Solution or Workaround

ArcGIS API for JavaScript 4.x is a major overhaul of ArcGIS API for JavaScript and it is recommended to rewrite the codes used in the development of widgets using the latest version of ArcGIS API for JavaScript. Refer to ArcGIS API for JavaScript: Migrating from 3.x to 4.19 for instructions on migrating applications to the latest version of ArcGIS API for JavaScript.

Related Information

Last Published: 7/5/2021

Article ID: 000025690

Software: ArcGIS Dashboards 9.1 ArcGIS Online 9.2, 9.1 ArcGIS API for JavaScript 4.9, 4.8, 4.7, 4.6, 4.5, 4.4, 4.3, 4.2, 4.19, 4.18, 4.17, 4.16, 4.15, 4.14, 4.13, 4.12, 4.11, 4.10, 4.1, 4.0