AnsweredAssumed Answered

Python to GP service mystery

Question asked by bill@poconogis.com on Oct 8, 2015
Latest reply on Oct 8, 2015 by bill@poconogis.com

Hi, I have this python script that basically selects a point by it's ID, then selects all points within a distance and returns only a subset of those that match the type field.  i.e. find all hospitals within 3 miles of this location..

 

My python script works, does what it's supposed to. So I create a GP service from it. Add the service back into the map and run it. Now I notice no matter what distance I use, the data doesn't change. If I delete the created Featureclass to see if it's really working. It does not create a new featureclass but it says it completed successfully.

 

Now the weird part, if I hit the GP service at the rest endpoint with the parameters it says it works but returns no records. I've been careful to avoid schema locks when using the Rest endpoint ArcMap and ArcCatalog are closed.

 

It's like the GP service doesn't have permission to write to the sde database, However my sde connection works fine on my PC.

 

Any ideas?

Outcomes