I'm having a problem publishing a geoprocessing service in which the name exceeds 19 characters on ArcGIS Server 10.5.1. The service will stage and I can build a service definition just fine, but when I go to publish it, if the name of the service exceeds 19 characters, the publish will fail. I've gone as far as to strip everything out of the python script the service calls, it still fails if the name is too long.
I have instances that I've upgraded from 10.3.1 to 10.5.1 and the service in question exists on an upgraded 10.5.1 server, but I cannot create the service on a fresh install.
Any ideas on how to make this work would be greatly appreciated!
Thanks!
Are the config-store and directories paths in a similar path, (for example C:\arcgisserver\... on each site)? What are the errors in the logs? Is this on Windows or Linux? Since this points to some type of pathing issue, you can try to run ProcMon and filter for any file activity from the Server processes to determine if there's a write or read failure due to the path being too long, as the limit is 260 characters.