ArcREST icon indicating copy to clipboard operation
ArcREST copied to clipboard

Migrating from AGOL to Server

Open DShokes opened this issue 7 years ago • 3 comments

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?

DShokes avatar Apr 27 '17 16:04 DShokes

You need to use an AGS security handler.

MikeMillerGIS avatar Apr 27 '17 16:04 MikeMillerGIS

Thanks. I figured out if had to change the securityinfo['org_url'] to the services REST directory instead of "http://www.arcgis.com"

DShokes avatar Apr 27 '17 17:04 DShokes

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.

DShokes avatar Apr 27 '17 18:04 DShokes