<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: getDataSourceProxies() throws TypeError in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697008#M3706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For those of you keeping score at home, this issue appears to be resolved with the JavaScript API v3.15. Calling getDataSourceProxies() no longer returns an error and instead returns an array of DataSourceProxy objects! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Dec 2015 23:53:41 GMT</pubDate>
    <dc:creator>BenSaunders1</dc:creator>
    <dc:date>2015-12-03T23:53:41Z</dc:date>
    <item>
      <title>getDataSourceProxies() throws TypeError</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697002#M3700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get at an external data source within the Operations Dashboard with my custom JavaScript widget - this external data source would be one in addition to the data source configured with my widget. So I'm using the &lt;A href="https://developers.arcgis.com/javascript/jsapi/widgetproxy-amd.html#getdatasourceproxies" rel="nofollow noopener noreferrer" target="_blank"&gt;getDataSourceProxies()&lt;/A&gt; method on the WidgetProxy class. However, it throws the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;TypeError
 "TypeError: Cannot call method 'map' of undefined
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at null.&amp;lt;anonymous&amp;gt; (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Fesri%2Fopsdashboard%2Fcore%2FExtensionBase.js%3A11%3A181" target="_blank"&gt;http://js.arcgis.com/3.14/esri/opsdashboard/core/ExtensionBase.js:11:181&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A167%3A296" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:167:296&lt;/A&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at k (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A189%3A431" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:189:431&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at m (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A189%3A357" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:189:357&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at resolve (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A191%3A441" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:191:441&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at a (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A190%3A311" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:190:311&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A190%3A217" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:190:217&lt;/A&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at k (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A189%3A431" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:189:431&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at m (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A189%3A357" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:189:357&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at resolve (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A191%3A441" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:191:441&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------------------------
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rejected at a (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A190%3A337" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:190:337&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at k (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A190%3A103" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:190:103&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at m (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A189%3A357" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:189:357&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at x.reject (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A192%3A143" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:192:143&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at a (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A190%3A337" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:190:337&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at k (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A190%3A89" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:190:89&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at m (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A189%3A357" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:189:357&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at resolve (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A191%3A441" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:191:441&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at a (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A190%3A311" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:190:311&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A190%3A217" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:190:217&lt;/A&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; ----------------------------------------
Error
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at then.b.then (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A192%3A253" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:192:253&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at declare.hostReady (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A5001%2FOperations%2520Dashboard%2520Extensions%2FMyWidget%2FMyWidget.js%3A79%3A41" target="_blank"&gt;http://localhost:5001/Operations%20Dashboard%20Extensions/MyWidget/MyWidget.js:79:41&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at l._hostReady (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Fesri%2Fopsdashboard%2Fcore%2FExtensionBase.js%3A8%3A186" target="_blank"&gt;http://js.arcgis.com/3.14/esri/opsdashboard/core/ExtensionBase.js:8:186&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A167%3A296" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:167:296&lt;/A&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at k (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A189%3A431" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:189:431&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at m (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A189%3A357" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:189:357&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at resolve (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A191%3A441" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:191:441&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at a (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A190%3A311" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:190:311&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A190%3A217" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:190:217&lt;/A&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at k (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjs.arcgis.com%2F3.14%2Finit.js%3A189%3A431" target="_blank"&gt;http://js.arcgis.com/3.14/init.js:189:431&lt;/A&gt;&lt;SPAN&gt;)" init.js:199&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code in my custom widget is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;define([
&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/_base/declare",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/opsdashboard/WidgetProxy"
], function(
&amp;nbsp;&amp;nbsp;&amp;nbsp; declare,
&amp;nbsp;&amp;nbsp;&amp;nbsp; WidgetProxy
) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; return declare("MyWidget", [WidgetProxy], {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Override */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hostReady: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.inherited(arguments);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.getDataSourceProxies().then(function(aDataSourceProxies) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Data source proxies:", aDataSourceProxies);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My manifest file includes &lt;SPAN style="color: #3d3d3d;"&gt;"useDataFromView": &lt;/SPAN&gt;&lt;SPAN style="color: #fbde2d;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #303030;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;. And I indeed have an external data source loaded:&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/139270_pastedImage_7.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Any thoughts on how to troubleshoot this? Or am I taking the wrong approach at getting at this external data source from my custom widget?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Ben&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:20:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697002#M3700</guid>
      <dc:creator>BenSaunders1</dc:creator>
      <dc:date>2021-12-12T05:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: getDataSourceProxies() throws TypeError</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697003#M3701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the then() function has three callback arguments, as per&lt;/P&gt;&lt;P&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.10/dojo/promise/Promise.html" title="http://dojotoolkit.org/reference-guide/1.10/dojo/promise/Promise.html"&gt;dojo/promise/Promise — The Dojo Toolkit - Reference Guide&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, the code would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hostReady: function(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.getDataSourceProxies().then(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function(r){ console.log('r'); console.log(r); },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function(e){ console.log('e'); console.log(e); },&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function(p){ console.log('p'); console.log(p); }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still the output is:&lt;/P&gt;&lt;P class="console-log-level console-message" style="border-top-width: 1px; border-top-style: solid; border-top-color: #f0f0f0; padding: 1px 22px 1px 0; margin-left: 24px; color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;SPAN class="console-message-text source-code"&gt;e&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="console-log-level console-message" style="border-top-width: 1px; border-top-style: solid; border-top-color: #f0f0f0; padding: 1px 22px 1px 0; margin-left: 24px; color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;SPAN style="font-style: italic; line-height: 1.5;"&gt;TypeError {}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="console-log-level console-message" style="border-top-width: 1px; border-top-style: solid; border-top-color: #f0f0f0; padding: 1px 22px 1px 0; margin-left: 24px; color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;&lt;/P&gt;&lt;P class="console-log-level console-message" style="border-top-width: 1px; border-top-style: solid; border-top-color: #f0f0f0; padding: 1px 22px 1px 0; margin-left: 24px; color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px;"&gt;and I don't know why.&lt;BR /&gt;Did you find any solution yet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 21:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697003#M3701</guid>
      <dc:creator>HoriaTudosie</dc:creator>
      <dc:date>2015-11-19T21:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: getDataSourceProxies() throws TypeError</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697004#M3702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;just replace the original function with this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;/P&gt;&lt;P&gt;&amp;nbsp; "dojo/_base/declare",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "dojo/_base/lang",&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp; "dojo/Deferred",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/opsdashboard/core/messageHandler",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "esri/opsdashboard/core/errorMessages",&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;], function (declare, lang, Deferred, messageHandler, ErrorMessages, &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return declare("TimeChartWidgetConfig", [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WidgetConfigurationProxy], {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateString: templateString,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hostReady: function(){&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.getDataSourceProxies().then(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function(dataSources) { console.log(dataSources); },&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function(err) { console.log('error: '+err); }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;&amp;nbsp;&amp;nbsp; getDataSourceProxies: function() {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return !this._isHostInitialized() &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ? (new Deferred).reject(Error(ErrorMessages.hostNotReady)) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : messageHandler._sendMessageWithReply({functionName: "getDataSources"}).then(lang.hitch(this, function(a) {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (new Deferred).resolve(a.dataSources);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 03:55:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697004#M3702</guid>
      <dc:creator>HoriaTudosie</dc:creator>
      <dc:date>2015-11-20T03:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: getDataSourceProxies() throws TypeError</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697005#M3703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I knew as soon as I would be on leave someone would answer this! Sorry for not responding right away...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source of the bug seems to be in the ExtensionBase class - inside the ExtensionBase class, it is calling the map method on an object that is presumably and Array. However, it isn't (it is null) because it is looking for a property called "_dataSourceProxies" to run the map method on. What it should be looking for is "dataSources". That's an array. That is also what you've included in your workaround above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_1448051498411713" data-renderedposition="134_8_912_16" jivemacro_uid="_1448051498411713"&gt;&lt;STRONG&gt;return (new Deferred).resolve(a.dataSources);&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the meantime I too have taken advantage of the messageHandler._sendMessageWithReply to get at the data sources. I've tried filing a bug report on the support site, but because of my lowly EDN license it won't accept it (not paying for support). So I'm in the process of working through a client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your time - I appreciate it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 20:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697005#M3703</guid>
      <dc:creator>BenSaunders1</dc:creator>
      <dc:date>2015-11-20T20:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: getDataSourceProxies() throws TypeError</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697006#M3704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find any way to subscribe for notifications from the ds we get with this fix?&lt;/P&gt;&lt;P&gt;Normally, the notification from the (single) data source configured in the configuration comes through the method &lt;STRONG&gt;dataSourceExpired&lt;/STRONG&gt; (with the parameter dataSource - but this is just the one configured as above...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot figure out a method to subscribe for notifications from other ds...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 02:36:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697006#M3704</guid>
      <dc:creator>HoriaTudosie</dc:creator>
      <dc:date>2015-11-25T02:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: getDataSourceProxies() throws TypeError</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697007#M3705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Horia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I haven't looked into that. The addtional datasource I've been working with has been an external one (verses one loaded in a map). And while that datasource is configured to be dynamic and refreshed every 30 seconds, it doesn't refresh itself (monitoring network traffic through Fiddler shows no periodic calls to refresh the data). However, when I query the datasource, it performs a QueryTask and makes the call directly to ArcGIS Server. So in essence I'm getting live data instead of data that is 30 seconds old, which is good. But more appropriate for our discussion here, there's no associated dataSourceExpired event as a result to work with, as there's no active expiration (if that makes any sense at all...). But in our case, we are not dependent on that datasource expiring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That all being said, there will be a time when we will want/need that! The place I would start looking in is to see if there's anything with the messageHandler class and see if there's somehow a "message" being sent out by the host application of when a datasource expires. It might be worth looking at the dataSourceExpired method to see how it is getting notified as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's too bad that there's nothing associated with the datasource that triggers the event, but instead you have to rely on the dataSourceExpired method, and that's on another class and is passive as you point out - both the datasource and config are more like return variables in this situation rather than arguments!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you find out more, please follow-up cause it is a mystery to me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 21:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697007#M3705</guid>
      <dc:creator>BenSaunders1</dc:creator>
      <dc:date>2015-11-25T21:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: getDataSourceProxies() throws TypeError</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697008#M3706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For those of you keeping score at home, this issue appears to be resolved with the JavaScript API v3.15. Calling getDataSourceProxies() no longer returns an error and instead returns an array of DataSourceProxy objects! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 23:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/getdatasourceproxies-throws-typeerror/m-p/697008#M3706</guid>
      <dc:creator>BenSaunders1</dc:creator>
      <dc:date>2015-12-03T23:53:41Z</dc:date>
    </item>
  </channel>
</rss>

