I am trying to use a locally hosted print service (GPServer) within the Print Widget in AGOL, but an error is returned when a map is requested. This print service is utilized with other applications in our organization and there has never been an issue with the widget's performance. The application uses AGOL hosted point data that is not secured (shared with "everyone") and the print service is also publicly accessible by anyone using the rest endpoint. I will attach a screenshot of the current issue, but in short when trying to print a map (pdf) of viewable data the widget is unable to complete the request and the following error is returned: "Unexpected token <". This error only occurs within this application and only when trying to print a map of greater than ~4,000 point features; less than ~4,000 features does not return this error and a map/pdf is successfully generated and returned.
In troubleshooting this issues I have done the following and the issue has persisted:
1. Changed sharing from "Organization" to "Everyone" for all associated layers.
2. Changed print service's "Maximum Number of Records Returned by Server" from 1,000 to 100,000
3. Changed print service's "The maximum time a client will wait to get a service" and "The maximum time a client can use a service" to 6,000
4. Changed point data layers "Max Record Count" from 1,000 to 100,000
In other semi-related GEONET postings, I have read about an issue with the print widget sending/receiving the JSON data in an HTML string format and the widget is unable to parse that information correctly. Could this be a similar issue? If so, how would this be resolved?
Attached you will find screenshots of the issue as well as the configuration of the Print Widget.