Print Task Error in ArgGis print server 10.31

2306
4
03-11-2016 08:13 AM
JohnPreston
Occasional Contributor

I am trying to use PrintTask and PrintTemplate however am running into problems. If I try to print basemap or simple polygon layer such as parcels or sections it works. If I try to print anything more complex even points layer or dynamic service layer it does not work. The error is generated in Export Web Map Task. It appears it may have something to do with length of json call to Export Web Map Task...

I only get error on our server. Printing works great from ArcGIS on-line samples or other examples just not on our server.

Has anyone run into this situation? Is it a setting on our server?

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus

John,

  Can you check with your IT Dept and see if they have reduced the url string max length property on your web server? You way want to look into adding a proxy to your web server as well:

GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP. 

0 Kudos
JohnPreston
Occasional Contributor

Thank you Robert,

The string max length on web server? Where application is or where map service is?

John

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

John,

  This would be an advanced setting implemented by your IT Department.

IIS: Changing maxQueryString and maxUrl | My Tec Bits.

MiriamBrockmann
Occasional Contributor

We run into the same Problem and solved it by changing the POST-Request into a GET - Request on our Proxy.

0 Kudos