<?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: CS student needs help for Open Data project in Python Snippets Questions</title>
    <link>https://community.esri.com/t5/python-snippets-questions/cs-student-needs-help-for-open-data-project/m-p/770364#M108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tested if 2.4 resolves this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2019 20:17:25 GMT</pubDate>
    <dc:creator>PhilLarkin1</dc:creator>
    <dc:date>2019-07-09T20:17:25Z</dc:date>
    <item>
      <title>CS student needs help for Open Data project</title>
      <link>https://community.esri.com/t5/python-snippets-questions/cs-student-needs-help-for-open-data-project/m-p/770361#M105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a computer science student and I working on this project;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Goal&lt;/STRONG&gt;: Python script to publish hosted feature layer to AGOL from a geodatabase. To eventually move features to Open Data.&lt;/P&gt;&lt;P&gt;I am referencing my arcpy object to a Pro project in which lives a gdb file. I store the list of items from the gdb into a list called lyrList that is sent to my publish function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;: Publishing is working, however, the sharing to my groups is not. I am passing a list with two group names to UploadServiceDefinition_server just like the documentation asks for. Code was written referencing the sharing module found here:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/arcpy/sharing/featuresharingdraft-class.htm"&gt;FeatureSharingDraft&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My publish( ) function looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/439013_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;my_groups is a python list of two group names that I need to share to. To me it seems that in my sharing draft I have a property set&amp;nbsp; to no sharing and my Service Definition is not overriding when I call to UploadServiceDefinition( )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, any help is greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 01:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/cs-student-needs-help-for-open-data-project/m-p/770361#M105</guid>
      <dc:creator>deleted-user-TWrDPrRtd5gf</dc:creator>
      <dc:date>2019-03-08T01:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: CS student needs help for Open Data project</title>
      <link>https://community.esri.com/t5/python-snippets-questions/cs-student-needs-help-for-open-data-project/m-p/770362#M106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Brandon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like this is a known issue. It will be fixed in the next version of ArcGIS Pro (2.4).&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEyMDI4Mg==" title="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEyMDI4Mg=="&gt;BUG-000120282: The in_groups parameter in UploadServiceDefinition_s..&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 16:30:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/cs-student-needs-help-for-open-data-project/m-p/770362#M106</guid>
      <dc:creator>GeoJosh</dc:creator>
      <dc:date>2019-03-08T16:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: CS student needs help for Open Data project</title>
      <link>https://community.esri.com/t5/python-snippets-questions/cs-student-needs-help-for-open-data-project/m-p/770363#M107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wanted to update with my solution for publishing while also sharing to a group. I used a combination of arcpy and published as stated above while also using the Python API sharing module found here:&amp;nbsp;&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html?highlight=share#arcgis.gis.Item.share" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html?highlight=share#arcgis.gis.Item.share"&gt;arcgis.gis module — arcgis 1.6.0 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I followed the tutorial for sharing found here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/labs/python/share-maps-and-layers/" title="https://developers.arcgis.com/labs/python/share-maps-and-layers/"&gt;Share maps and layers | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My solution looks like this just after the UploadServiceDefinition function call:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/439290_pastedImage_5.png" /&gt;&lt;/P&gt;&lt;P&gt;groups=groups is a Group object that I obtained earlier in the code like this:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/439289_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;The tutorial goes into more detail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2019 20:50:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/cs-student-needs-help-for-open-data-project/m-p/770363#M107</guid>
      <dc:creator>deleted-user-TWrDPrRtd5gf</dc:creator>
      <dc:date>2019-03-12T20:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: CS student needs help for Open Data project</title>
      <link>https://community.esri.com/t5/python-snippets-questions/cs-student-needs-help-for-open-data-project/m-p/770364#M108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tested if 2.4 resolves this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2019 20:17:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-snippets-questions/cs-student-needs-help-for-open-data-project/m-p/770364#M108</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2019-07-09T20:17:25Z</dc:date>
    </item>
  </channel>
</rss>

