<?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: CSV Sample erroring in map add layer ...unable to test ... in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12451#M1181</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's definitely a proxy issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to change the path for proxyUrl so that your application can find your proxy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, when I downloaded the CSV sample from the sandbox, I too encountered an error when first trying to run the application. I was able to fix this issue by entering the correct path to my proxy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; urlUtils.addProxyRule({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxyUrl: "../../proxy/DotNet/proxy.ashx",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlPrefix: "earthquake.usgs.gov"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 20:31:51 GMT</pubDate>
    <dc:creator>JonathanUihlein</dc:creator>
    <dc:date>2021-12-10T20:31:51Z</dc:date>
    <item>
      <title>CSV Sample erroring in map add layer ...unable to test ...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12448#M1178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hola Land of Red,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I download &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/layers_csv.html"&gt;https://developers.arcgis.com/javascript/jssamples/layers_csv.html&lt;/A&gt;&lt;SPAN&gt;, or visit the sandbox, run it and download, and then open the file in IE10, Firefox or Chrome, I am appear to be erroring in the call to add the csvlayer to the map.&amp;nbsp; However, the code does appear to work in the live samples area and sandbox.&amp;nbsp; I have checked that the url to the csv file is not being blocked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to test whether I will be able to load a local csv file.&amp;nbsp; Once I get past the error, is there any reason I would not be able to load a file on the local file system?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 16:28:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12448#M1178</guid>
      <dc:creator>DavidTakahashi</dc:creator>
      <dc:date>2014-04-11T16:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Sample erroring in map add layer ...unable to test ...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12449#M1179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have a proxy set up? In the code there is this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;urlUtils.addProxyRule({
&amp;nbsp;&amp;nbsp;&amp;nbsp; proxyUrl: "/proxy",
&amp;nbsp;&amp;nbsp;&amp;nbsp; urlPrefix: "earthquake.usgs.gov"
});
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12449#M1179</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-10T20:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Sample erroring in map add layer ...unable to test ...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12450#M1180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The index.html from the samples download, and the layers_csv.html from the sandbox download BOTH have the urlUtils.addProxyRule code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to debug into the map.addLayer(csv); line I get a 'The resource from this URL is not text: &lt;/SPAN&gt;&lt;A href="http://js.arcgis.com/3.9/"&gt;http://js.arcgis.com/3.9/&lt;/A&gt;&lt;SPAN&gt;' error...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Viewing the script in firebug gives me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;&lt;BR /&gt;&lt;SPAN style="color:#ff0000;"&gt;GET &lt;A href="http://services.arcgisonline.com/ArcGIS/rest/info?f=json"&gt;http://services.arcgisonline.com/ArcGIS/rest/info?f=json&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;200 OK&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 88ms&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;/3.9/ (line 159)&lt;BR /&gt;TypeError: 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;(an empty string)&lt;BR /&gt;/3.9/ (line 205)&lt;BR /&gt;error: TypeError: 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;error(a=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)csv.js (line 31)&lt;BR /&gt;(?)(a=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)/3.9/ (line 640)&lt;BR /&gt;(?)()/3.9/ (line 74)&lt;BR /&gt;(?)(a=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)/3.9/ (line 74)&lt;BR /&gt;(?)(a=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)/3.9/ (line 76)&lt;BR /&gt;(?)()/3.9/ (line 74)&lt;BR /&gt;(?)(a=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)/3.9/ (line 74)&lt;BR /&gt;(?)(a=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)/3.9/ (line 76)&lt;BR /&gt;(?)()/3.9/ (line 74)&lt;BR /&gt;(?)(a=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)/3.9/ (line 74)&lt;BR /&gt;(?)(a=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)/3.9/ (line 76)&lt;BR /&gt;(?)()/3.9/ (line 74)&lt;BR /&gt;(?)(a=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)/3.9/ (line 74)&lt;BR /&gt;(?)(a=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)/3.9/ (line 76)&lt;BR /&gt;(?)(f=&lt;BR /&gt;TypeError: Unable to draw graphic (null): 'toString' called on an object that does not implement interface DOMException.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Filtered chrome url chrome://firebug/content/console/errorMessageObj.js&lt;BR /&gt;&lt;BR /&gt;)/3.9/ (line 638)&lt;BR /&gt;(?)()/3.9/ (line 74)&lt;BR /&gt;(?)(b=Object { deferred={...}, resolved=null, error=function(), more...}, d=function(), f=function())/3.9/ (line 76)&lt;BR /&gt;(?)(a=null, c=function())/3.9/ (line 76)&lt;BR /&gt;(?)(a=function())layers_csv.html (line 77)&lt;BR /&gt;(?)(c=Object { promise=Promise, ioArgs={...}, fired=1, more...})/3.9/ (line 636)&lt;BR /&gt;&lt;SPAN&gt;(?)(a=Object { url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://earthquake.usgs.....0/summary/2.5_week.csv" rel="nofollow" target="_blank"&gt;http://earthquake.usgs.....0/summary/2.5_week.csv&lt;/A&gt;&lt;SPAN&gt;", handleAs="text", load=function(), more...}, b=Object { usePost=false})/3.9/ (line 641)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;buildCSVFeatureCollection(a=Object { url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://earthquake.usgs.....0/summary/2.5_week.csv" rel="nofollow" target="_blank"&gt;http://earthquake.usgs.....0/summary/2.5_week.csv&lt;/A&gt;&lt;SPAN&gt;", layerDefinition={...}, columnDelimiter=undefined})csv.js (line 31)&lt;/SPAN&gt;&lt;BR /&gt;_initCSVLayer(b=Object { copyright="USGS.gov", outFields=[1]})CSVLayer.js (line 22)&lt;BR /&gt;&lt;SPAN&gt;constructor(b="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://earthquake.usgs.....0/summary/2.5_week.csv" rel="nofollow" target="_blank"&gt;http://earthquake.usgs.....0/summary/2.5_week.csv&lt;/A&gt;&lt;SPAN&gt;", a=Object { copyright="USGS.gov", outFields=[1]})CSVLayer.js (line 21)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(?)(a=Object { url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://earthquake.usgs.....0/summary/2.5_week.csv" rel="nofollow" target="_blank"&gt;http://earthquake.usgs.....0/summary/2.5_week.csv&lt;/A&gt;&lt;SPAN&gt;", _url={...}, spatialReference={...}, more...}, b=["&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://earthquake.usgs.....0/summary/2.5_week.csv" rel="nofollow" target="_blank"&gt;http://earthquake.usgs.....0/summary/2.5_week.csv&lt;/A&gt;&lt;SPAN&gt;", Object { copyright="USGS.gov", outFields=[1]}])/3.9/ (line 240)&lt;/SPAN&gt;&lt;BR /&gt;(?)()/3.9/ (line 239)&lt;BR /&gt;(?)()/3.9/ (line 105)&lt;BR /&gt;(?)(Map=function(), CSVLayer=function(), Color=function(), SimpleMarkerSymbol=function(), SimpleRenderer=function(), InfoTemplate=function(), urlUtils=Object { urlToObject=function(), getProxyUrl=function(), addProxy=function(), more...})layers_csv.html (line 47)&lt;BR /&gt;(?)(a=Object { mid="require*_15", pack=0, executed=5, more...}, d=undefined)/3.9/ (line 32)&lt;BR /&gt;(?)()/3.9/ (line 32)&lt;BR /&gt;(?)(a=function())/3.9/ (line 32)&lt;BR /&gt;(?)()/3.9/ (line 32)&lt;BR /&gt;(?)()/3.9/ (line 34)&lt;BR /&gt;(?)(a=load )/3.9/ (line 39)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;...(a)}));return d},generateDefaultPopupInfo:function(a){var b={esriFieldTypeDouble...&lt;BR /&gt;&lt;BR /&gt;csv.js (line 31)&lt;BR /&gt;"Resuming debugger: error during debugging loop: TypeError: firstViewRangeElement is null"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG style=": ; font-size: 5; font-family: Arial Black;"&gt;Thanks for the speedy reply!!!!&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 19:44:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12450#M1180</guid>
      <dc:creator>DavidTakahashi</dc:creator>
      <dc:date>2014-04-11T19:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Sample erroring in map add layer ...unable to test ...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12451#M1181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's definitely a proxy issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to change the path for proxyUrl so that your application can find your proxy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, when I downloaded the CSV sample from the sandbox, I too encountered an error when first trying to run the application. I was able to fix this issue by entering the correct path to my proxy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp; urlUtils.addProxyRule({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxyUrl: "../../proxy/DotNet/proxy.ashx",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlPrefix: "earthquake.usgs.gov"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:31:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12451#M1181</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2021-12-10T20:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Sample erroring in map add layer ...unable to test ...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12452#M1182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;also, you cannot just run the file in ie/chrome, etc.. It MUST be run/hosted on a webserver.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 20:01:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-sample-erroring-in-map-add-layer-unable-to/m-p/12452#M1182</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-04-11T20:01:55Z</dc:date>
    </item>
  </channel>
</rss>

