<?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: {&amp;quot;error&amp;quot;:{&amp;quot;code&amp;quot;:400,&amp;quot;message&amp;quot;:&amp;quot;Invalid 'layerDefs' is specified&amp;quot;,&amp;quot;details&amp;quot;:[]}} in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593405#M55549</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Robert,&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2019 17:27:03 GMT</pubDate>
    <dc:creator>NatashaManzuiga</dc:creator>
    <dc:date>2019-02-01T17:27:03Z</dc:date>
    <item>
      <title>{"error":{"code":400,"message":"Invalid 'layerDefs' is specified","details":[]}}</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593401#M55545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;Hi All, I have upgraded my ArcGIS Server to the version 10.6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;I'm using the API 3.26 and I don't know why the method &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;setLayerDefinitions doesnt work anymore...it seems like is changed the synthax...&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;Someone had my same issue?&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;I saw that there was a bug with the version 10.5 &lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEwMjA1MQ==" title="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEwMjA1MQ==" rel="nofollow noopener noreferrer" target="_blank"&gt;BUG-000102051: The setLayerDefinitions() function against DynamicMa..&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;but this is the version 10.6..
&lt;/SPAN&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;Can someone help me?&lt;/SPAN&gt;
&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;Thanks,&lt;/SPAN&gt;

&lt;SPAN style="font-family: arial, helvetica, sans-serif; font-size: 15px;"&gt;Naty&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593401#M55545</guid>
      <dc:creator>NatashaManzuiga</dc:creator>
      <dc:date>2021-12-12T01:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: {"error":{"code":400,"message":"Invalid 'layerDefs' is specified","details":[]}}</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593402#M55546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please provide&amp;nbsp;a code snippet of how you are attempting to apply the layer definitions.&lt;/P&gt;&lt;P&gt;Here is an example of how it should look:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; layerDefinitions &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"POPULATION &amp;gt; 5000000"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AREA &amp;gt; 100000"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
dynamicMapServiceLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setLayerDefinitions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerDefinitions&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593402#M55546</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T01:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: {"error":{"code":400,"message":"Invalid 'layerDefs' is specified","details":[]}}</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593403#M55547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, I'm using LocalLayer Widget in my WAB Application. &lt;BR /&gt;The following code works perfectly with ArcGIS Server 10.3.&lt;BR /&gt;It seems link the URL that create the method setLayerDefinitions is not compatible with ArcGIS Server 10.6.&lt;BR /&gt;Maybe, it's different....and I should see which layers are visible....and apply only to them setLayerDefinitions.&lt;BR /&gt;Many thanks in advance, &lt;BR /&gt;Naty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; lLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;ArcGISDynamicMapServiceLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lOptions&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; layerDefinitions &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; prop &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; definitionQueries&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
    layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;prop&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; definitionQueries&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;prop&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; parameterURLQuery_def &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Id=100'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; parameterURLQuery_def&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; parameterURLQuery_def&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; parameterURLQuery_def&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; parameterURLQuery_def&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; parameterURLQuery_def&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; parameterURLQuery_def&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;6&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; parameterURLQuery_def&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;7&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; parameterURLQuery_def&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;8&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; parameterURLQuery_def&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
lLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setLayerDefinitions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerDefinitions&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Robert Scheitlin, GISP wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naty,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please provide&amp;nbsp;a code snippet of how you are attempting to apply the layer definitions.&lt;/P&gt;&lt;P&gt;Here is an example of how it should look:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; layerDefinitions &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"POPULATION &amp;gt; 5000000"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
layerDefinitions&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"AREA &amp;gt; 100000"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
dynamicMapServiceLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setLayerDefinitions&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;layerDefinitions&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:29:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593403#M55547</guid>
      <dc:creator>NatashaManzuiga</dc:creator>
      <dc:date>2021-12-12T01:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: {"error":{"code":400,"message":"Invalid 'layerDefs' is specified","details":[]}}</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593404#M55548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; So each layer in the map service has a feature that has an "Id" field that is numeric with a value of 100?..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 14:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593404#M55548</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-02-01T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: {"error":{"code":400,"message":"Invalid 'layerDefs' is specified","details":[]}}</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593405#M55549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Robert,&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 17:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593405#M55549</guid>
      <dc:creator>NatashaManzuiga</dc:creator>
      <dc:date>2019-02-01T17:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: {"error":{"code":400,"message":"Invalid 'layerDefs' is specified","details":[]}}</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593406#M55550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;OK strange. What is this whole part about?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;for&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;var&lt;/SPAN&gt; prop &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;in&lt;/SPAN&gt; definitionQueries&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; layerDefinitions&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;[&lt;/SPAN&gt;prop&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;]&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt; definitionQueries&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;[&lt;/SPAN&gt;prop&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:29:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593406#M55550</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T01:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: {"error":{"code":400,"message":"Invalid 'layerDefs' is specified","details":[]}}</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593407#M55551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It’s of the LocalLayer widget..&lt;/P&gt;&lt;P&gt;I suppose that the syntax changed somehow.&lt;/P&gt;&lt;P&gt;I tried to modify the URL sent to export the map filtered by the setLayerDefinitions and it doesn’t work but it works on ArcGIS Server 10.3..&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 22:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593407#M55551</guid>
      <dc:creator>NatashaManzuiga</dc:creator>
      <dc:date>2019-02-01T22:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: {"error":{"code":400,"message":"Invalid 'layerDefs' is specified","details":[]}}</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593408#M55552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naty,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; comment out these lines and test again:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;for&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;var&lt;/SPAN&gt; prop &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;in&lt;/SPAN&gt; definitionQueries&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt; &lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; layerDefinitions&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;[&lt;/SPAN&gt;prop&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;]&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt; definitionQueries&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;[&lt;/SPAN&gt;prop&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593408#M55552</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T01:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: {"error":{"code":400,"message":"Invalid 'layerDefs' is specified","details":[]}}</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593409#M55553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, I tried with comment out these lines....but nothing changed...&lt;/P&gt;&lt;P&gt;At least I better analyzed the URL prepared by the API..and I noticed that the problem is with the 10.6 version of ArcGIS.&lt;BR /&gt;I just can use setLayerDefinitions for the visible SubLayers.&lt;/P&gt;&lt;P&gt;so...I changed my code to:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;i&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;var &lt;/SPAN&gt;&lt;SPAN style="color: #458383;"&gt;visiblelLayers &lt;/SPAN&gt;=&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;lLayer&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;visibleLayers&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;for &lt;/SPAN&gt;(&lt;SPAN style="color: #458383;"&gt;i&lt;/SPAN&gt;=&lt;SPAN style="color: #0000ff;"&gt;0&lt;/SPAN&gt;; &lt;SPAN style="color: #458383;"&gt;i &lt;/SPAN&gt;&amp;lt; &lt;SPAN style="color: #458383;"&gt;visiblelLayers&lt;/SPAN&gt;.&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;length&lt;/SPAN&gt;;&lt;SPAN style="color: #458383;"&gt;i&lt;/SPAN&gt;++){&lt;BR /&gt; &lt;SPAN style="color: #458383;"&gt;layerDefinitions&lt;/SPAN&gt;[&lt;SPAN style="color: #458383;"&gt;visiblelLayers&lt;/SPAN&gt;[&lt;SPAN style="color: #458383;"&gt;i&lt;/SPAN&gt;]]=&lt;SPAN style="color: #458383;"&gt;urlParameter&lt;/SPAN&gt;;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #458383;"&gt;lyr&lt;/SPAN&gt;.setLayerDefinitions(&lt;SPAN style="color: #458383;"&gt;layerDefinitions&lt;/SPAN&gt;,&lt;SPAN style="color: #000080; font-weight: bold;"&gt;true&lt;/SPAN&gt;); &lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;so it's not true what they say here:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;A class="link-titled" href="http://geodienste-umwelt.hessen.de/arcgis_js_api/sdk_37/jsapi/arcgisdynamicmapservicelayer-amd.html#setlayerdefinitions" title="http://geodienste-umwelt.hessen.de/arcgis_js_api/sdk_37/jsapi/arcgisdynamicmapservicelayer-amd.html#setlayerdefinitions"&gt;ArcGISDynamicMapServiceLayer-amd | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Definition expressions for layers that are currently not visible will be ignored by the server.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So the last thing I need now is that when I activate a Layer (in the LayerList widget) I don't have set a Layer Definition...and I should set it somehow before adding it... &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Naty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 14:26:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/quot-error-quot-quot-code-quot-400-quot-message/m-p/593409#M55553</guid>
      <dc:creator>NatashaManzuiga</dc:creator>
      <dc:date>2019-02-04T14:26:56Z</dc:date>
    </item>
  </channel>
</rss>

