<?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 Python API sending in layer id twice in the URL in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-sending-in-layer-id-twice-in-the-url/m-p/851255#M3831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the python API in a Jupyter notebook on notebooks.esri.com and am observing that when adding a a map with one or more layers on it, the data is not showing up. I traced it back to the fact that the API is adding an extra layer id to the feature service requests when it sends in the queries. I.E. if my feature&amp;nbsp;layer has a URL like "&lt;SPAN class=""&gt;http://myhost/testing/MyData/FeatureServer/0", the query requests come to the feature service as "&lt;SPAN&gt;http://myhost/&lt;/SPAN&gt;&lt;SPAN&gt;testing&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;MyData&lt;/SPAN&gt;&lt;SPAN&gt;/FeatureServer/0/0/query?where=..."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Note the extra "0" in the URL. I have not seen any other Esri tools generate layer URLs like this and I don't see anything in the spec that says this should be supported. Any thoughts about what's going on?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jun 2019 13:15:45 GMT</pubDate>
    <dc:creator>JamesKerr</dc:creator>
    <dc:date>2019-06-12T13:15:45Z</dc:date>
    <item>
      <title>Python API sending in layer id twice in the URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-sending-in-layer-id-twice-in-the-url/m-p/851255#M3831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the python API in a Jupyter notebook on notebooks.esri.com and am observing that when adding a a map with one or more layers on it, the data is not showing up. I traced it back to the fact that the API is adding an extra layer id to the feature service requests when it sends in the queries. I.E. if my feature&amp;nbsp;layer has a URL like "&lt;SPAN class=""&gt;http://myhost/testing/MyData/FeatureServer/0", the query requests come to the feature service as "&lt;SPAN&gt;http://myhost/&lt;/SPAN&gt;&lt;SPAN&gt;testing&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;MyData&lt;/SPAN&gt;&lt;SPAN&gt;/FeatureServer/0/0/query?where=..."&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Note the extra "0" in the URL. I have not seen any other Esri tools generate layer URLs like this and I don't see anything in the spec that says this should be supported. Any thoughts about what's going on?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 13:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-sending-in-layer-id-twice-in-the-url/m-p/851255#M3831</guid>
      <dc:creator>JamesKerr</dc:creator>
      <dc:date>2019-06-12T13:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python API sending in layer id twice in the URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-sending-in-layer-id-twice-in-the-url/m-p/851256#M3832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You added the Feature Layer then as an item with the url&amp;nbsp;"http://myhost/testing/MyData/FeatureServer/0" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell us a little bit more about how you are adding the layer? Are you adding that from your content (drag and drop) or via the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 14:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-sending-in-layer-id-twice-in-the-url/m-p/851256#M3832</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2019-06-12T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Python API sending in layer id twice in the URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-sending-in-layer-id-twice-in-the-url/m-p/851257#M3833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does this when I use FeatureLayer(url) and then try to use the query() function as well as if I access a WebMap with my feature layers already configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears to related to the version of the arcgis Python API. If I downgrade to 1.4.0, it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 10:13:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-sending-in-layer-id-twice-in-the-url/m-p/851257#M3833</guid>
      <dc:creator>JamesKerr</dc:creator>
      <dc:date>2019-06-13T10:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python API sending in layer id twice in the URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-sending-in-layer-id-twice-in-the-url/m-p/851258#M3834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the additional info, James. So we're on the same page, can you provide a snippet I test on my end to see if I encounter the same behavior?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Earl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 13:55:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api-sending-in-layer-id-twice-in-the-url/m-p/851258#M3834</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2019-06-13T13:55:26Z</dc:date>
    </item>
  </channel>
</rss>

