AnsweredAssumed Answered

ERROR 999999: Something unexpected caused the tool to fail

Question asked by mjiangesriaustralia-com-au-esridist Employee on Dec 15, 2019
Latest reply on Jan 16, 2020 by mboyceesriaustralia-com-au-esridist

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

arcpy.server.StageService("input_sd_draft","output_sd" None)


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.