AnsweredAssumed Answered

Arcgis server API for Javascript-Secure Print Service Failed to Execute

Question asked by adarsh2402 on Jan 22, 2018
Latest reply on Jan 22, 2018 by sucecb

 We are facing issues with printtask() method of ArgGIS API 3.16 for JavaScript while using secure services. Our services are published in ArcGIS Server 10.3.1(Advance) and secured with Long-lived token. The application has proxy.jsp file which is used for supplying Long-lived tokens. Services are inaccessible in this case and error comes as “Unable to complete operation”. The application works smoothly by removing the token from services. This issue still needs to resolve.

 

We tried other solution for printing maps using GPServer tool We created custom tool "Export web Map" from printing option under Server Tool and published GPServer tool at our ArcGIS server 10.3.1(Advance). We called the printtask() method of ArgGIS API 3.16 for Javascript on the "Print" button of the application and referred GPServer tool service. It did not give the print of map in PDF format. Screenshots and related files are also attached here for the identification of actual problem. 

Outcomes