<?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 Enable LRS When Publishing a Service in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/enable-lrs-when-publishing-a-service/m-p/1058122#M61126</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am trying to automate the publishing of maps as services from ArcGIS Pro.&amp;nbsp; There appear to be several tools available through arcpy to accomplish this by creating an sddraft, staging a service, and uploading a service definition. (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/introduction-to-arcpy-sharing.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/introduction-to-arcpy-sharing.htm&lt;/A&gt;)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When manually publishing a service using the 'sharing map as web layer' pane there are several options that I do not see available using the arcpy methods mentioned above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHarris1_0-1621015305871.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/13362i0626FF087B508BEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHarris1_0-1621015305871.png" alt="DavidHarris1_0-1621015305871.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to publish services and add this capability using arcpy, or the python api if there are any functions or methods that might accomplish this there.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 18:04:30 GMT</pubDate>
    <dc:creator>DavidHarris1</dc:creator>
    <dc:date>2021-05-14T18:04:30Z</dc:date>
    <item>
      <title>Enable LRS When Publishing a Service</title>
      <link>https://community.esri.com/t5/python-questions/enable-lrs-when-publishing-a-service/m-p/1058122#M61126</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am trying to automate the publishing of maps as services from ArcGIS Pro.&amp;nbsp; There appear to be several tools available through arcpy to accomplish this by creating an sddraft, staging a service, and uploading a service definition. (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/introduction-to-arcpy-sharing.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/introduction-to-arcpy-sharing.htm&lt;/A&gt;)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When manually publishing a service using the 'sharing map as web layer' pane there are several options that I do not see available using the arcpy methods mentioned above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidHarris1_0-1621015305871.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/13362i0626FF087B508BEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidHarris1_0-1621015305871.png" alt="DavidHarris1_0-1621015305871.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to publish services and add this capability using arcpy, or the python api if there are any functions or methods that might accomplish this there.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 18:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-lrs-when-publishing-a-service/m-p/1058122#M61126</guid>
      <dc:creator>DavidHarris1</dc:creator>
      <dc:date>2021-05-14T18:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Enable LRS When Publishing a Service</title>
      <link>https://community.esri.com/t5/python-questions/enable-lrs-when-publishing-a-service/m-p/1059107#M61170</link>
      <description>&lt;P&gt;Try opening up the .sddraft file that you created.&amp;nbsp; It is an XML file and it might have a section regarding linear referencing that you can edit using Python.&lt;/P&gt;&lt;P&gt;Also, I think you can access the .sddraft that is created while you are publishing through ArcGIS Pro.&amp;nbsp; It is probably in your user folder and you might have to check for it at the right step in the publishing process.&lt;/P&gt;&lt;P&gt;I went through this whole process very slowly in ArcMap.&amp;nbsp; I used Fiddler to look at the network traffic for the REST API calls that are made to understand the process and I also saved out the .sddraft file from ArcMap during the publishing process.&amp;nbsp; Once I understood all the steps and changes that needed to be made to the .sddraft file, I was able to automate it all in Python.&amp;nbsp; This was about 4 years ago.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 18:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-lrs-when-publishing-a-service/m-p/1059107#M61170</guid>
      <dc:creator>NathanHeickLACSD</dc:creator>
      <dc:date>2021-05-18T18:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Enable LRS When Publishing a Service</title>
      <link>https://community.esri.com/t5/python-questions/enable-lrs-when-publishing-a-service/m-p/1059423#M61172</link>
      <description>&lt;P&gt;Thank you for the reply.&amp;nbsp; I was hopeful there would be a more idiomatic way to do this using the python api, but I will give this a go and try and parse it out.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 14:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/enable-lrs-when-publishing-a-service/m-p/1059423#M61172</guid>
      <dc:creator>DavidHarris1</dc:creator>
      <dc:date>2021-05-19T14:56:57Z</dc:date>
    </item>
  </channel>
</rss>

