I have a python script that is successful in running an executable and would like to publish it as a geoprocessing service. However, it claims that the executable cannot be copied to the server (code 00178) and that the data source is not registered (code 24032). The location of the executable shows in the registered folders list of the data stores and the Server account has permissions. Is there something that I am missing?
How are you referencing the executable?
If you've got a full path variable: myExe = r'c:\folder\doSomething.exe' try swapping it to something like:
myFolder = r'c:\folder' #this is the same item thats registered with the datastore
myExe = os.path.join(myFolder, 'doSomething.exe')
Or maybe you have it that way, and you want to switch it to the full path. I'm not in a position to test this right now, but I know one (actually though, both ways) should work.
What version of Server?