Run executable in geoprocessing service

2948
3
12-01-2015 12:57 PM
JoshObrecht
Occasional Contributor

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?

0 Kudos
3 Replies
KevinHibma
Esri Regular Contributor

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?

0 Kudos
JoshObrecht
Occasional Contributor

I am using 10.2.2.

I tried what you suggested and now it is saying that a .dll cannot be copied to the server.

0 Kudos
JoshObrecht
Occasional Contributor

I am still running into the issue of it saying that it cannot copy the .dll to the server.

0 Kudos