Comments (4)
Sure, here you go.
from arcgis-python-api.
Extra comment:
params = {"capabilities": "Query,Editing,Create,Update,Delete",
"layerOverridesEnabled": True,}
updating the definition with this works but removing and having just Query is not working. Normally this was as expected but it seems online no longer blocks the capability even though we do.
Need to mess with it online
from arcgis-python-api.
@kphaneuf Can you post the small csv we had used?
from arcgis-python-api.
Ok I was able to test this better and found a few things. First of all you can just pass {"locationType" : None}
to the publish method and it will create the table. So no need for the analyze step.
Second, the front end seems to have a bug. When we turn off editing capabilities, it shows that you can still overwrite and when you overwrite you get a little green popup at the bottom of the screen saying overwrite was successful. But this is wrong! If we look at the network traffic we see that success was actually False:
So the necessity to set the capabilities to "Query, Editing,...." as we had seen is actually needed. I will report this bug to online since the ability to overwrite is not available without them.
So just to conclude:
the workflow we found where to define the capabilities, do an update_defintion with the FeatureLayerCollectionManager, overwrite the service, and then set back the capabilities to just "Query" is the best workflow and the correct way to do it.
Hope all of this helps, Ill close the issue since it is resolved and alert online about it but feel free to comment more if needed. Thanks!
from arcgis-python-api.
Related Issues (20)
- JSON Format Mismatch for NER data export from Doccano Editor vs. ArcGIS Format
- Issues with datetime imports; arcgis python API is overwriting the import causing a runtime exception HOT 1
- GeoAccessor.compare incorrectly shows every row as modified HOT 3
- GeoSeriesAccessor.equals returns None in version 2.2 HOT 3
- edit_features does not set NaT dates to null in version 2.2 HOT 1
- edit_features sets all dates to the same value in version 2.2 HOT 5
- InsecureRequestWarning when initializing GIS with client_id and client_secret HOT 1
- Need help with Web Maps HOT 2
- Deep Learning essentials are failing to install in Google colab
- clone_items throws "IndexError: list index out of range" when there are nested repeats in the featureservice
- Append job gets stuck in pending state indefinitely HOT 2
- Python Bypasses User Credit Allotment in AGOL HOT 2
- Table query fails with "TypeError: Casting to unit-less dtype 'datetime64' is not supported. Pass e.g. 'datetime64[ns]' instead." HOT 6
- clone_items() with item_mapping parameter misses group layers in the web map HOT 1
- Item.share() is not working when the groups parameter is specified HOT 1
- generate_raster fails in local and ArcGIS Online notebooks HOT 3
- Installing into Azure Databricks. Could you document recommended arcgis & databricks runtime versions and prerequisites?
- GeoAccessor.from_table results in empty array HOT 3
- AttributeError: module 'numpy' has no attribute 'float' HOT 1
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 arcgis-python-api.