<?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 Error 500: Internal server error,while setting the layer definition of dynamic layer. in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/error-500-internal-server-error-while-setting-the/m-p/834876#M509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using dynamic layer to load different data on map when we search. There are two ways to search:&lt;/P&gt;&lt;P&gt;1. by using country name&lt;/P&gt;&lt;P&gt;2. by using country as well as state name.&lt;/P&gt;&lt;P&gt;When we search using state and country name, then I am not having&amp;nbsp;any issue. But when I search using just country name then I am getting "&lt;STRONG&gt;Error 500: Internal server error&lt;/STRONG&gt;". I am using proxy for calling the arcgis services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set the new definition for layer:-&amp;nbsp;&lt;/P&gt;&lt;P&gt;map.getLayer("Dealer Location").setLayerDefinitions(layerDefinitions);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;OL class="" style="color: #212121 !important; background-color: #ffefef; font-size: 12px;"&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class=""&gt;n {&lt;SPAN class="" style="color: #881391;"&gt;message&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN&gt;"Unable to load /aor/proxy.jsp?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Farcgisqualap%E2%80%A6AOR%2FDealer_Info_Lbl%2FMapServer%2Fexport" rel="nofollow" target="_blank"&gt;https://arcgisqualap…AOR/Dealer_Info_Lbl/MapServer/export&lt;/A&gt;&lt;SPAN&gt;? status: 500"&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #881391;"&gt;response&lt;/SPAN&gt;: &lt;SPAN class="" style="color: inherit;"&gt;Object&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #881391;"&gt;status&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #1c00cf;"&gt;500&lt;/SPAN&gt;,&lt;SPAN class="" style="color: #881391;"&gt;responseText&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #c41a16;"&gt;"{"timestamp":1490685729634,"status":500,"error":"I…":"No message available","path":"/aor/proxy.jsp"}"&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #881391;"&gt;xhr&lt;/SPAN&gt;: &lt;SPAN class="" style="color: inherit;"&gt;XMLHttpRequest&lt;/SPAN&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;}&lt;SPAN class="" style="color: white; background-color: #b3cbf7; font-size: 9px; margin: 0px 6px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;_ssl&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;undefined&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;log&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;undefined&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;message&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN&gt;"Unable to load /aor/proxy.jsp?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2FXXXXXXXXXXXX.com%2Farcgis%2Frest%2Fservices%2FDealer_AOR%2FDealer_Info_Lbl%2FMapServer%2Fexport" rel="nofollow" target="_blank"&gt;https://XXXXXXXXXXXX.com/arcgis/rest/services/Dealer_AOR/Dealer_Info_Lbl/MapServer/export&lt;/A&gt;&lt;SPAN&gt;? status: 500"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;response&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: inherit;"&gt;Object&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;responseText&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"{"timestamp":1490685729634,"status":500,"error":"Internal Server Error","message":"No message available","path":"/aor/proxy.jsp"}"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;stack&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;get stack&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;arguments&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;null&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;caller&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;null&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;length&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;0&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;name&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;""&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;prototype&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: inherit;"&gt;aZ&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;__proto__&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&amp;lt;function scope&amp;gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;set stack&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;status&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;500&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;xhr&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: inherit;"&gt;XMLHttpRequest&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;__proto__&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: inherit;"&gt;a&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,when we are searching using "Country", then a huge amount of data comes in&amp;nbsp;variable '&lt;SPAN&gt;layerDefinitions' and I am getting the above issue where 'POST' call is failing. But if we change the data and reduce the the amount of data in 'layerDefinitions', then It is working fine and data is getting loaded on the map (same case as search using 'State+Country').&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Earlier, we were not using proxy and there were no issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anybody please tell me what changes can I do or is there any other way to set the map layer definition for such a huge amount of data for layer definition?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 07:39:45 GMT</pubDate>
    <dc:creator>ShashiShekhar</dc:creator>
    <dc:date>2017-03-28T07:39:45Z</dc:date>
    <item>
      <title>Error 500: Internal server error,while setting the layer definition of dynamic layer.</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/error-500-internal-server-error-while-setting-the/m-p/834876#M509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using dynamic layer to load different data on map when we search. There are two ways to search:&lt;/P&gt;&lt;P&gt;1. by using country name&lt;/P&gt;&lt;P&gt;2. by using country as well as state name.&lt;/P&gt;&lt;P&gt;When we search using state and country name, then I am not having&amp;nbsp;any issue. But when I search using just country name then I am getting "&lt;STRONG&gt;Error 500: Internal server error&lt;/STRONG&gt;". I am using proxy for calling the arcgis services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set the new definition for layer:-&amp;nbsp;&lt;/P&gt;&lt;P&gt;map.getLayer("Dealer Location").setLayerDefinitions(layerDefinitions);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;OL class="" style="color: #212121 !important; background-color: #ffefef; font-size: 12px;"&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class=""&gt;n {&lt;SPAN class="" style="color: #881391;"&gt;message&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN&gt;"Unable to load /aor/proxy.jsp?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Farcgisqualap%E2%80%A6AOR%2FDealer_Info_Lbl%2FMapServer%2Fexport" rel="nofollow" target="_blank"&gt;https://arcgisqualap…AOR/Dealer_Info_Lbl/MapServer/export&lt;/A&gt;&lt;SPAN&gt;? status: 500"&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #881391;"&gt;response&lt;/SPAN&gt;: &lt;SPAN class="" style="color: inherit;"&gt;Object&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #881391;"&gt;status&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #1c00cf;"&gt;500&lt;/SPAN&gt;,&lt;SPAN class="" style="color: #881391;"&gt;responseText&lt;/SPAN&gt;: &lt;SPAN class="" style="color: #c41a16;"&gt;"{"timestamp":1490685729634,"status":500,"error":"I…":"No message available","path":"/aor/proxy.jsp"}"&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #881391;"&gt;xhr&lt;/SPAN&gt;: &lt;SPAN class="" style="color: inherit;"&gt;XMLHttpRequest&lt;/SPAN&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;}&lt;SPAN class="" style="color: white; background-color: #b3cbf7; font-size: 9px; margin: 0px 6px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;_ssl&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;undefined&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;log&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;undefined&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;message&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;&lt;SPAN&gt;"Unable to load /aor/proxy.jsp?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2FXXXXXXXXXXXX.com%2Farcgis%2Frest%2Fservices%2FDealer_AOR%2FDealer_Info_Lbl%2FMapServer%2Fexport" rel="nofollow" target="_blank"&gt;https://XXXXXXXXXXXX.com/arcgis/rest/services/Dealer_AOR/Dealer_Info_Lbl/MapServer/export&lt;/A&gt;&lt;SPAN&gt;? status: 500"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;response&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: inherit;"&gt;Object&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;responseText&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"{"timestamp":1490685729634,"status":500,"error":"Internal Server Error","message":"No message available","path":"/aor/proxy.jsp"}"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;stack&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;get stack&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;arguments&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;null&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;caller&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;null&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;length&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;0&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;name&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;""&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;prototype&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: inherit;"&gt;aZ&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;__proto__&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&amp;lt;function scope&amp;gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;set stack&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;status&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;500&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;xhr&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: inherit;"&gt;XMLHttpRequest&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class="" style="padding-top: 2px;"&gt;&lt;SPAN class="" style="color: #881391;"&gt;__proto__&lt;/SPAN&gt;&lt;SPAN class=""&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: inherit;"&gt;a&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So,when we are searching using "Country", then a huge amount of data comes in&amp;nbsp;variable '&lt;SPAN&gt;layerDefinitions' and I am getting the above issue where 'POST' call is failing. But if we change the data and reduce the the amount of data in 'layerDefinitions', then It is working fine and data is getting loaded on the map (same case as search using 'State+Country').&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Earlier, we were not using proxy and there were no issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can anybody please tell me what changes can I do or is there any other way to set the map layer definition for such a huge amount of data for layer definition?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 07:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/error-500-internal-server-error-while-setting-the/m-p/834876#M509</guid>
      <dc:creator>ShashiShekhar</dc:creator>
      <dc:date>2017-03-28T07:39:45Z</dc:date>
    </item>
  </channel>
</rss>

