<?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: Custom print service with vector base maps and secured feature services in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/custom-print-service-with-vector-base-maps-and/m-p/1201751#M58485</link>
    <description>&lt;P&gt;Commenting because I'm in the same boat as you - I just cannot get the script tool to work in Pro.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2022 04:51:19 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-08-11T04:51:19Z</dc:date>
    <item>
      <title>Custom print service with vector base maps and secured feature services</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/custom-print-service-with-vector-base-maps-and/m-p/408560#M18180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are currently using ArcGIS server&amp;nbsp; (AGS) 10.7.1 and ArcGIS Online (AGO) in our organization.&amp;nbsp; We have some custom vector basemaps hosted in AGO, and some secured feature service layers published from AGS.&amp;nbsp; I created a custom print service in ArcGIS Pro 2.4.1 and published it to AGS as a geoprocessing service.&amp;nbsp; I then added the REST URL to AGO as the default print service (Organization &amp;gt; Settings &amp;gt; Utility Services &amp;gt; Printing).&amp;nbsp; When I try to print a web map in AGO, the vector basemap shows in the resulting PDF but not the secured feature service layers.&amp;nbsp; The logs in AGS show the error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error executing tool. Export Web Map : Failed to create layer from service at https://&amp;lt;server&amp;gt;/&amp;lt;webadaptor&amp;gt;/rest/services/&amp;lt;folder&amp;gt;/&amp;lt;service name&amp;gt;/FeatureServer/0. Failed to execute (Export Web Map). Failed to execute (Export Web Map).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In communicating with Support, we have determined that it is probably a permissions issue with the custom print service. Even though I created the service in Pro and published it to Server using the admin connection, the credentials are not being passed from the print service to the secure feature service.&amp;nbsp; I also have a custom print service created and published in ArcMap, but this service will not print the vector base maps (apparently this is new tech in the ArcGIS Pro print service).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link explains that the ImportCredentials function can be used to embed the proper credentials in the Print service in ArcGIS Pro:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/web-map-printing-with-arcpy-mp.htm#ESRI_SECTION1_1EB4BCD03C964BF2A9CDC6BC60329F7E" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/web-map-printing-with-arcpy-mp.htm#ESRI_SECTION1_1EB4BCD03C964BF2A9CDC6BC60329F7E"&gt;Web map printing with arcpy.mp—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is I am not quite familiar enough with creating a python script tool to do this.&amp;nbsp; I've started with example 8 here:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/convertwebmaptoarcgisproject.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/convertwebmaptoarcgisproject.htm"&gt;ConvertWebMapToArcGISProject—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I cannot get this to work with a script tool in Pro.&amp;nbsp;&amp;nbsp;Any help or suggestions would be much appreciated.&amp;nbsp; Bottom line is I'd like to be able to print web maps in AGO containing vector base maps and secure feature service layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 15:23:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/custom-print-service-with-vector-base-maps-and/m-p/408560#M18180</guid>
      <dc:creator>Col_Forbin</dc:creator>
      <dc:date>2019-09-05T15:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom print service with vector base maps and secured feature services</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/custom-print-service-with-vector-base-maps-and/m-p/1201751#M58485</link>
      <description>&lt;P&gt;Commenting because I'm in the same boat as you - I just cannot get the script tool to work in Pro.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2022 04:51:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/custom-print-service-with-vector-base-maps-and/m-p/1201751#M58485</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-11T04:51:19Z</dc:date>
    </item>
  </channel>
</rss>

