I want to generate a TPK file from a cached map service(having 10 scales) using the GP tool available in ArcMap (10.5.1) "ExportMapServerCache" which i'll be using in a mobile application for offline map viewing and i am trying to extract some selected scales only(2 to 3 scales).
Here i am facing an issue in publishing the ExportMapServerCache tool as a GP Service.I could able to run the tool without any issues and getting the desired output but it throws some staging error while publishing.
Based on the error messages i moved the temp directory close to the C drive(c:\temp), reduced the length of the server connection name(con2.ags) and gave all permission to the folders and using a registered database(PostgreSQL 9.5).
please refer the screen shot and attachment.
help me to resolve this issue