Select to view content in your preferred language

Publishing Geoprocessing Service that use Feature Service URLs

377
3
03-28-2022 11:11 AM
ZacharyHart
Regular Contributor

I've developed a script tool which I'm looking to publish as a GP service. The script leverages several feature service URLs from our Enterprise system hard-coded inputs for the script; using direct DB connections to the under lying database isn't a viable option.

Obviously, you cannot/do not register server URLs with your Data Store, but since the validation process cannot find these resources in the Data Store, it warns that the data source is not registered and will therefore be copied.

I thought that maybe I could simply parameterize these URLs in the Script Tool but I'm not sure that you can make these hidden or locked.

Is there anyway to go about publishing this without using a direct DB connection?

0 Kudos
3 Replies
sxw_eaglegis
Esri Contributor

Hi there - Could split up the URL in your script to get around that, like this:

site = "https://server/arcgis/rest/services"
service = "/Hosted/layer/FeatureServer/0"
serviceURL = site+service

 

0 Kudos
ZacharyHart
Regular Contributor

Unfortunately, this doesn't seem to trick the validation process:

ZacharyHart_0-1649697402416.png

 

0 Kudos
ZacharyHart
Regular Contributor

Is there anyone from Esri willing to answer this?

0 Kudos