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?
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
Unfortunately, this doesn't seem to trick the validation process:
Is there anyone from Esri willing to answer this?