PrintTask not showing feature layers

237
3
11-12-2019 01:39 PM
JimRogers
New Contributor

I'm attempting to use PrintTask to export a file from a map that contains both feature layers (loaded from my map server) and graphics layers (created in javascript.)

Information for both layers is sent to the server in the request json, but the feature layers do not appear in the resulting file. The graphics layers render just fine. 

I've tried submitting the json from API interface on the server, with the server URl and with locahost, https and http. I get the same results. There's no indication of an error and I can find no logs that indicate a problem. 

I suspect the issue is on the server, my client code is very simple and the layer is in the json request. Could it be something to do with how the feature layer is defined on the server?

Tags (1)
0 Kudos
3 Replies
Noah-Sager
Esri Regular Contributor

This is difficult to troubleshoot without additional information. What version of the JS API are you using? What is the version of ArcGIS Server that hosts the layers? Where is the print service (is it AGO utility or on the same server that is hosting the layers)?

0 Kudos
JimRogers
New Contributor

The JSAPI version is 4.10 (but I get the same result with 4.13)

The print service and layers are on a local server, version 10.6.1.

0 Kudos
Noah-Sager
Esri Regular Contributor

Sorry, I'm not sure. You could try to use the AGO print service to help narrow does the cause:

Task: Export Web Map Task 

0 Kudos