I encounter an error that when I tries to print my map using the general print service, Utilities/PrintingTools/GPServer/Export Web Map Task. Everything is working as expected when I attempt to print a map with a few layers, but when I tries to print every single layer at once, an error "ERROR 000735: Web Map as JSON: Value is required Value is empty" was returned by the service. The error doesn't seems to be related to various "timeout" issue as the response from the server were immediately returned right after I send the request.
I've checked the actual request and the web map as json field is properly filled, and I have check that i could print every layer individually, or with a few other layers. The only thing that comes to mind is the size of the request, with content length 15032970.
does anyone have any clue what might be the cause? some sort of server request size limit?
I actually kinda did, I found the cause literally yesterday but I am still looking for solutions.
turns out in my case it's due to huge HTTP POST content size. map server has its max post limit i think it's default to 10Mb, it discarded my webmapasjson input when i tried to post it, so the API return error.
I change maxPostSize to 0 to disable limitation for post size in C:\Program Files\ArcGIS\Server\framework\runtime\tomcat\conf\server.xml. But now I am getting different error "Internal Server Error. Error handling service request : Cannot write the request to the server:" and I am still looking into it. Feel free to comeback and share if you find anything in the future.