Comments (6)
Do you have the latest version of ArcREST?
It's in there: https://github.com/Esri/ArcREST/blob/master/src/arcrest/manageorg/parameters.py
from arcrest.
Yes, the error no longer appears, can you provide an example of how ['layerinfo'] should be structured?
from arcrest.
See: http://resources.arcgis.com/en/help/arcgis-rest-api/#/Layer/02r30000004q000000/
Andrew Chapkowski | Professional Services
esri | 1325 Morris Drive, Suite 201 | Chesterbrook, PA 19087
Phone: 610-644-3374 ext. 5930 | E-mail: [email protected]:[email protected]
[DevA_EDDA]
From: Geoffrey West [mailto:[email protected]]
Sent: Wednesday, May 20, 2015 11:36 AM
To: Esri/ArcREST
Cc: Andrew Chapkowski
Subject: Re: [ArcREST] AttributeError: 'module' object has no attribute 'AnalyzeParameters' (#59)
Yes, the error no longer appears, can you provide an example of how ['layerinfo'] should be structured?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/59#issuecomment-103929167.
from arcrest.
Not sure why it's not publishing, I intermittently receive a 500 error from addItem as mentioned in #53. Publishing and addItem appear dependent at this point as an itemAdds without issue when I omit the publish section.
print usercontent.publishItem(fileType="CSV",
publishParameters=publishParams,
itemId=itemId) does not print a result.
my ['layerinfo'] is a json that I am reading from disk as
jsonfile = 'C:\Users\GIS\Desktop\eastvalley.json'
with open(jsonfile, "r") as f:
data = json.loads(f.read())
if 'publishParameters' in analyzeResult:
pp = analyzeResult['publishParameters']
publishParams = arcrest.manageorg.PublishCSVParameters(name=pp['CSVPublishTest'],
locationType=pp['none'],
layerInfo=pp[jsonfile])
print usercontent.publishItem(fileType="CSV",
publishParameters=publishParams,
itemId=itemId)
print 'finished'
I am using this JSON structure found http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r30000008q000000
{
"name": "My CSV File Dataset",
"locationType": "none",
"description": "test description",
"maxRecordCount": 500,
"copyrightText": "test copyright",
"layerInfo": {
"name": "Illinois",
"type": "Feature Layer",
"geometryType": "none",
"minScale": 0,
"maxScale": 0,
"hasAttachments": false,
"htmlPopupType": "esriServerHTMLPopupTypeNone",
"objectIdField": "GeographyId",
"globalIdField": "",
"typeIdField": "",
"fields": [
{
"name": "GeographyId",
"type": "esriFieldTypeString",
"alias": "FID",
"sqlType": "sqlTypeInteger",
"nullable": false,
"editable": false,
"domain": null
},
{
"name": "GeographyName",
"type": "esriFieldTypeString",
"alias": "Geog Name",
"nullable": false,
"editable": true,
"domain": null
},
{
"name": "GeographyType",
"type": "esriFieldTypeString",
"alias": "Geog type",
"nullable": false,
"editable": true,
"domain": null
},
{
"name": "StateAbbreviation",
"type": "esriFieldTypeString",
"alias": "State Abbr.",
"nullable": false,
"editable": true,
"domain": null
}
],
"types": [],
"templates": [],
"capabilities": "Query,Editing"
}
}
from arcrest.
I would suggest installing Fiddler and walk through the process using ArcGIS Online or Portal and see what differs from the calls you are making in ArcRest. Can you post the entire scripts and a sample CSV that we can use to repo the issue?
from arcrest.
No code posted or fiddler traffic, issue closed. Please feel free to post your issue again.
from arcrest.
Related Issues (20)
- createReplica does not work for feature services inside folder HOT 1
- arcrest.ags.server._validateurl() Mangles Compound Web Context Names HOT 5
- Migrating from AGOL to Server HOT 3
- Append with a new Schema and Attachments
- Does this work with Arcgis Online Enterprise accounts? HOT 5
- Can disable sync be used to enable sync? HOT 1
- Attribute error 'module' object has no attribute 'create_default_context HOT 2
- Intermittent HTTP 403 issues using DeleteFeaturesFromFeatureLayer HOT 3
- ArcRest was working then quit--no changes to script HOT 18
- createReplica will not return records for a table HOT 18
- Looking for additional information
- Misspelling for geometry filter? HOT 2
- ArcRest "arcrest.agol.services.FeatureService.createReplica" tool failing HOT 1
- .addFeatures doesn't copy over all features
- Sample script for metadata import
- ArcRest "arcrest.agol.services.FeatureService.createReplica" works on one ArcGIS Online organization but not another HOT 10
- BUG
- create_replica_portal_item.py - Download permissions HOT 1
- usercontent error: HOT 14
- Importing webmap HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcrest.