Hi,
ArcGIS Server Version: 10.7 (ArcGIS Online)
ArcGIS JS API: 3.29
In my web application, I am consuming secured services properly loading the map and have a requirement to print the map contents.
Initially, the token expiry was set to default (i.e. 60 mins) and everything worked fine including printing, using the Utilities/PrintingTools GP Service.
As part of the requirement, the token expiry was increased from 60 mins to 240 mins - everything still worked fine except for printing! Looking up the Esri help it was clear I had to create a custom service. I created the custom service as described in the help documents, but it still fails with the following error:
Error executing tool. Export Web Map Task Job ID: jb88972125ace4b6593c8055ee779e920 : Layer "xyz": Unable to connect to map server at https://xyz/arcgis/rest/services/xyz/MapServer/. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task).
Any suggestion this issue occurs with particular layers on ArcGIS Online? If those layers are turned off then print tool works properly.
Regards
Sai Anand