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.
Is it possible for you to insert the script that you are using?
And could you list a bit more about your IDE?
From what you have provided I would be looking into issues with either the arcpy call in the script or in the version of Python that is being called when run in the command line/IDE.
A late response.
Before the Xmas break, I've escalated this to Esri inc through our support channel. The latest response I've got this morning, they can reproduce this at their end. This probably a bug, but will post the confirmed response as soon as i have.
Thanks for the update.
I am keen to find out what is causing the issue as I have just encountered something similar on a clients site.
Although in my case the Server version is very old.