<?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 ArcGIS Pro 2.0.1 - ArcGIS Pro 2.1  BUG: Python function CreateWebLayerSDDraft in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-0-1-arcgis-pro-2-1-bug-python/m-p/165135#M7470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello - I've just began to notice that when I have layers in a Pro 2.0.1 or Pro 2.1 map that have a relationship, the related information from the one layer with a relate is then added to the second layer that does not have a relate when running the python function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.mp.CreateWebLayerSDDraft()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example, I have 2 layers in an ArcPro 2.1 map and project.&amp;nbsp; Parcels and a related Property table, and a second layer, Neighborhood Associations.&amp;nbsp; When I create teh sddraft for Neighborhood Associations, it now contains the related info from both the Parcels AND its related table.&amp;nbsp; I was able to discover this by parsing out the sddraft's xml:&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="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;PropertySetProperty&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;&lt;SPAN class="namespace token"&gt;xsi:&lt;/SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;typens:PropertySetProperty&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;Key&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;PackageLayerList&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;Key&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;Value&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;&lt;SPAN class="namespace token"&gt;xsi:&lt;/SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;xs:string&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;CIMPATH=planning/prod_gis_neighborhoodview.xml&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;PropertySetProperty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
.....
&amp;nbsp; &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;PropertySetProperty&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;&lt;SPAN class="namespace token"&gt;xsi:&lt;/SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;typens:PropertySetProperty&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;Key&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;DependantTableList&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;Key&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;Value&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;&lt;SPAN class="namespace token"&gt;xsi:&lt;/SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;xs:string&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;EXTERNALPATH=PROD::PROD.GIS.BuildingDetails|EXTERNALPATH=PROD::PROD.GIS.PROPERTY&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;PropertySetProperty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and by then simply looking at the hosted feature layer after I run the update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Neighborhood Associations layer now contains Parcels and it's related tables a layers.&amp;nbsp; That can't be right, and this started happening with the patch release at 2.0.1 as near as I can tell.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also see this with our utility water system valves here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sarco.maps.arcgis.com/home/item.html?id=cf962eed5cd3478b8bf71839db8ec423#overview" title="https://sarco.maps.arcgis.com/home/item.html?id=cf962eed5cd3478b8bf71839db8ec423#overview" rel="nofollow noopener noreferrer" target="_blank"&gt;https://sarco.maps.arcgis.com/home/item.html?id=cf962eed5cd3478b8bf71839db8ec423#overview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In this case, the&amp;nbsp;&lt;SPAN&gt;arcpy.mp.CreateWebLayerSDDraft() function thinks that all these layers are related through attachments.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is happening to any layer that has any relate or attachment relate.&amp;nbsp; I have tried sourcing both our 10.5.1 Enterprise SQL or File GDB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:37:25 GMT</pubDate>
    <dc:creator>DavidColey</dc:creator>
    <dc:date>2021-12-11T08:37:25Z</dc:date>
    <item>
      <title>ArcGIS Pro 2.0.1 - ArcGIS Pro 2.1  BUG: Python function CreateWebLayerSDDraft</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-0-1-arcgis-pro-2-1-bug-python/m-p/165135#M7470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello - I've just began to notice that when I have layers in a Pro 2.0.1 or Pro 2.1 map that have a relationship, the related information from the one layer with a relate is then added to the second layer that does not have a relate when running the python function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.mp.CreateWebLayerSDDraft()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example, I have 2 layers in an ArcPro 2.1 map and project.&amp;nbsp; Parcels and a related Property table, and a second layer, Neighborhood Associations.&amp;nbsp; When I create teh sddraft for Neighborhood Associations, it now contains the related info from both the Parcels AND its related table.&amp;nbsp; I was able to discover this by parsing out the sddraft's xml:&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="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;PropertySetProperty&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;&lt;SPAN class="namespace token"&gt;xsi:&lt;/SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;typens:PropertySetProperty&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;Key&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;PackageLayerList&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;Key&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;Value&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;&lt;SPAN class="namespace token"&gt;xsi:&lt;/SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;xs:string&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;CIMPATH=planning/prod_gis_neighborhoodview.xml&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;PropertySetProperty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
.....
&amp;nbsp; &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;PropertySetProperty&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;&lt;SPAN class="namespace token"&gt;xsi:&lt;/SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;typens:PropertySetProperty&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;Key&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;DependantTableList&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;Key&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;Value&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;&lt;SPAN class="namespace token"&gt;xsi:&lt;/SPAN&gt;type&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;xs:string&lt;SPAN class="punctuation token"&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;EXTERNALPATH=PROD::PROD.GIS.BuildingDetails|EXTERNALPATH=PROD::PROD.GIS.PROPERTY&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;Value&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
 &lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;PropertySetProperty&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and by then simply looking at the hosted feature layer after I run the update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Neighborhood Associations layer now contains Parcels and it's related tables a layers.&amp;nbsp; That can't be right, and this started happening with the patch release at 2.0.1 as near as I can tell.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also see this with our utility water system valves here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://sarco.maps.arcgis.com/home/item.html?id=cf962eed5cd3478b8bf71839db8ec423#overview" title="https://sarco.maps.arcgis.com/home/item.html?id=cf962eed5cd3478b8bf71839db8ec423#overview" rel="nofollow noopener noreferrer" target="_blank"&gt;https://sarco.maps.arcgis.com/home/item.html?id=cf962eed5cd3478b8bf71839db8ec423#overview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In this case, the&amp;nbsp;&lt;SPAN&gt;arcpy.mp.CreateWebLayerSDDraft() function thinks that all these layers are related through attachments.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is happening to any layer that has any relate or attachment relate.&amp;nbsp; I have tried sourcing both our 10.5.1 Enterprise SQL or File GDB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-0-1-arcgis-pro-2-1-bug-python/m-p/165135#M7470</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2021-12-11T08:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro 2.0.1 - ArcGIS Pro 2.1  BUG: Python function CreateWebLayerSDDraft</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-0-1-arcgis-pro-2-1-bug-python/m-p/165136#M7471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is most people aren't sharing layers up to AGOL or Portal with this method, and while I haven't found a solution I do have a workaround - place any layers that contain any type of relate into separate Pro map frames as a single map with a single layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 19:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-2-0-1-arcgis-pro-2-1-bug-python/m-p/165136#M7471</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2018-02-14T19:07:33Z</dc:date>
    </item>
  </channel>
</rss>

