Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Migrating from AGOL to Server #335

Open
DShokes opened this issue Apr 27, 2017 · 3 comments
Open

Migrating from AGOL to Server #335

DShokes opened this issue Apr 27, 2017 · 3 comments

Comments

@DShokes
Copy link
Contributor

DShokes commented Apr 27, 2017

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?

@MikeMillerGIS
Copy link
Member

MikeMillerGIS commented Apr 27, 2017 via email

@DShokes
Copy link
Contributor Author

DShokes commented Apr 27, 2017

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

@DShokes DShokes closed this as completed Apr 27, 2017
@DShokes
Copy link
Contributor Author

DShokes commented Apr 27, 2017

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 DShokes reopened this Apr 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants