<?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: PrintTask Error with FeatureLayer selection in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277143#M25563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever find a solution for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having the same issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Juliana&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Sep 2012 18:58:42 GMT</pubDate>
    <dc:creator>JulianaCastillo</dc:creator>
    <dc:date>2012-09-28T18:58:42Z</dc:date>
    <item>
      <title>PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277142#M25562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using ArcServer 10.1 and JSAPI 3.1. Printtask works when selection of a featurelayer under a feature service is empty. After a selection is made the follow error occurs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Layer "graphicsLayer0": Failed to create layer from service at &lt;A href="http://darkside:6080/arcgis/rest/services/TheAddresser/YorkCounty_SDE/FeatureServer/0"&gt;http://darkside:6080/arcgis/rest/services/TheAddresser/YorkCounty_SDE/FeatureServer/0&lt;/A&gt;. Failed to execute (ExportWebMap). Failed to execute (Export Web Map).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This feature service is secured. Anyone have any ideas? Sample code below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var printTask = new esri.tasks.PrintTask(url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var templateP = new esri.tasks.PrintTemplate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateP.format = "PDF";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateP.layout = "85x11";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateP.preserveScale = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; template.layoutOptions = { titleText: '', authorText: "ME", scalebarUnit: 'Feet', legendLayers: [] };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params = new esri.tasks.PrintParameters();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.outSpatialReference = map.spatialReference;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.map = map;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.template = templateP;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printTask.execute(params, function (result) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.open(result.url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hideWorking();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, function (err) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errorWin(err, 'printMap');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2012 02:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277142#M25562</guid>
      <dc:creator>ScottDavis3</dc:creator>
      <dc:date>2012-09-11T02:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277143#M25563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you ever find a solution for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having the same issue. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Juliana&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 18:58:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277143#M25563</guid>
      <dc:creator>JulianaCastillo</dc:creator>
      <dc:date>2012-09-28T18:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277144#M25564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i was able to reproduce the error you described, so i logged the following defect on your behalf.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[NIM085348: Error is returned when attempting to pass a print request which includes a secure featureLayer with an active selection.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for others encountering this issue, please feel free to contact technical support and add your name to the list of customers who are affected.&amp;nbsp; thanks for bringing this to our attention!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2012 22:50:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277144#M25564</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-10-01T22:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277145#M25565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has a solution to this been found? I'm trying to print secure services as well and I'm getting errors.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 15:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277145#M25565</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2013-03-22T15:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277146#M25566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;have you followed &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/0154/0154000005q3000000.htm"&gt;these instructions&lt;/A&gt;&lt;SPAN&gt; to publish a print service specifically for secure content?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 16:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277146#M25566</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-03-22T16:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277147#M25567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have followed those instructions to create a print service for secured content. However, I get the same error as before.&amp;nbsp; The print service cannot access my secure services.&amp;nbsp; Any idea as to what the issue might be?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 18:14:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277147#M25567</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2013-03-22T18:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277148#M25568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;even with the OOTB sample server 6 print service, i can't reproduce the error anymore in this sample app...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(update the proxy reference and use the identity manager to login with the credentials user1/user1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hopefully, after you confirm that the same works on your end you can work backwards to see whether its your featureLayer or your print service.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 19:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277148#M25568</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-03-22T19:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277149#M25569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I should clarify my problem.&amp;nbsp; I'm not trying to do a selection on a featurelayer.&amp;nbsp; I'm trying to use a print service that contains multiple secure services.&amp;nbsp; Here is the post I started &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/80495-Print-Secure-Services-using-10.1-Print-Service"&gt;http://forums.arcgis.com/threads/80495-Print-Secure-Services-using-10.1-Print-Service&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; The error that I get is easily reproduce using the sample OOTB sample server 6 print service.&amp;nbsp; Any suggestions? Keep in mind that I have set up the custom print service that was mentioned earlier.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 19:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277149#M25569</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2013-03-22T19:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277150#M25570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;not sure why you responded to this thread then, but ok....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you can use the same sample app to test sending a print request without making a selection on the layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 19:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277150#M25570</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-03-22T19:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277151#M25571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't see how this sample will help since none of the services in it use a token? I can get non secure services to work, with a selection or not.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 19:26:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277151#M25571</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2013-03-22T19:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277152#M25572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i was suggesting that you test using our own sample secured service first.&amp;nbsp; in this application the token is not stored in the application or in a proxy, but rather allows you to authenticate onLoad of the application by passing the credentials user1/user1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first try printing our sample service, then switch to your own secure service (and after that, your own print service)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 19:52:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277152#M25572</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-03-22T19:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277153#M25573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Having to sign in will not work in a production environment (tokens are a necessity), but apparently there is an issue with the authentication service running in my instance of ArcGIS Server 10.1.&amp;nbsp; Up until now I haven't had any issues using secure services.&amp;nbsp; I will case that error down and see if that resolves the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2013 20:08:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277153#M25573</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2013-03-22T20:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277154#M25574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has a solution been found for this bug yet?&amp;nbsp; I am also having the same issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 22:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277154#M25574</guid>
      <dc:creator>KatieReiter</dc:creator>
      <dc:date>2014-07-28T22:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask Error with FeatureLayer selection</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277155#M25575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently using printing IWA secured services is no longer supported in 10.4.x because of a vulnerability that existed. So instead of fixing the vulnerability the capability was removed. Wonderful. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 20:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printtask-error-with-featurelayer-selection/m-p/277155#M25575</guid>
      <dc:creator>CarlosKrefft</dc:creator>
      <dc:date>2016-07-25T20:24:00Z</dc:date>
    </item>
  </channel>
</rss>

