Trying to publish a GP service with Arcpy, but always getting ERROR 999999 when staging the draft. Below are what I'm doing:
1. publishing the GP service to Enterprise manually
2. get sddraft from staging folder, by default:
3. stage sddraft with python
The error is thrown out at this step.
if above executed in Pro python windows, it works... but not in python command line and my standalone script. So seems not from python library or environment.
probably you would ask why doing publish with the script again after successfully publishing manually.. Doing the release task, the generated SD would be used in other environments, e.g production.
Any suggestion would be highly appreciated.