ArcREST
ArcREST copied to clipboard
Migrating from AGOL to Server
ArcRest or ArcRestHelper
ArcRest
Version or date of download
4/1/2017
Bug or Enhancement
More of a question.
Repo Steps or Enhancement details
I've got a script that does a lot of queries, and feature updates on a hosted feature service. I'm trying to use the same script for a feature service on our local ArcGIS Server (no portal), but running into issues after building the featurelayer object. When i try to query the featurelayer object is get the following error:
{u'error': {u'message': u'Invalid Token', u'code': 498, u'details': []}}
I'm probably not declaring the feature layer properly. Is there an example that shows ArcGIS Server services being used?
You need to use an AGS security handler.
Thanks. I figured out if had to change the securityinfo['org_url'] to the services REST directory instead of "http://www.arcgis.com"
I am testing updating the service definition on the ArcGIS Server service and getting the following error.
>>> fl.administration.updateDefinition({})
{u'error': {u'message': u"Service 'VegmanTest'.'FeatureServer' does not exist in folder 'vegman'.", u'code': 500, u'details': []}}
Is this functionality possible with Server? Thanks.