POST
|
This issue was affecting a collaboration I had set up between Portal and AGOL. Adding these additional privileges to my DBMS user fixed the issue. Thanks for sharing!
... View more
04-02-2019
07:27 AM
|
0
|
0
|
2159
|
POST
|
You can check the status and report an outage here.... ArcGIS Online Health Dashboard It's not down for my organization, but we may be on a different hosted server. Leon
... View more
11-14-2018
06:04 AM
|
2
|
1
|
2606
|
POST
|
Thanks for the info on accessing the metadata through the REST API. I hadn't come across that.
... View more
10-04-2018
08:53 AM
|
0
|
0
|
3093
|
POST
|
Thanks! That is what I suspected regarding the ArcGIS API for Python. I'm a little surprised its not documented in the REST API documentation. I just spent 15 minutes looking for it; thinking how rusty I've gotten at navigating these API documentations. So thanks for clarifying that too!
... View more
10-04-2018
08:52 AM
|
0
|
0
|
3093
|
POST
|
Agreed, the terminology can be a bit much. Your screenshot sums it up! The "ArcGIS API for Python" is a mouthful in its own right! Yes, myLayer refers the FeatureLayer. I should have been clearer. gis = GIS(agol_url, agol_user, agol_pass) myItem = gis.content.get(itemid) myLayer = myItem.layers[0] update_dict = {'metadata':'metadata.xml'} myLayer.manager.update_definition(update_dict) I don't see in the Feature Layer Manager a method for updating the metadata like you can for an Item using the update method. ( arcgis.gis module — arcgis 1.5.0 documentation ) It looks like I can update the properties that you see on the REST endpoint of the layer, but not the metadata associated with the layer. Essentially, I want to automate the process of clicking the Metadata button (circled red in original post), clicking Overwrite on the metadata editor, selecting a local xml file and saving. It works for the Item metadata (blue circle).
... View more
10-04-2018
05:29 AM
|
0
|
4
|
3093
|
POST
|
If I have metadata created for the FeatuerLayerCollection item, it seems I can set the metadata for a FeatureLayer to use that metadata using the Update Defintion method. update_dict = {'metadata':'metadata.xml'} myLayer.manager.update_definition(update_dict) However, I'm unable to find a method to upload and update the metadata for a FeatureLayer. I would like to upload metadata for each of the layers in my Feature Service, if I happen to have more than one.
... View more
10-03-2018
09:25 AM
|
0
|
6
|
3093
|
POST
|
I have a hosted feature service in AGOL that I would like to overwrite the metadata from an xml file. It can be done manually (as shown circled in red in image below). Is the ability to update the metadata for a layer exposed in the ArcGIS API for Python? I'm able to update the item metadata (as shown in circled in blue), with this script: gis = GIS(agol_url, agol_user, agol_pass) myItem = gis.content.get(itemid) myItem.update(metadata="C:\gis_scripts\myMetadata.xml") However, the ability to update the layer level metadata is not as straightforward (or maybe not available).
... View more
10-03-2018
05:48 AM
|
0
|
8
|
3838
|
POST
|
Yes, that sounds about right. According to the documentation the storage costs for attachments is 1.2 credits per 1 GB per month. Understand credits—ArcGIS Online Help | ArcGIS Leon
... View more
08-28-2018
02:36 PM
|
1
|
0
|
1618
|
POST
|
Just in case anyone does run into this, here is the result of my support case.... #BUG-000116104 Script used to publish an SD file from ArcGIS Pro to ArcGIS Online using the ArcGIS API for Python doesn't work successfully at ArcGIS Pro 2.2 I'm rolling back to version 2.1 for now. Leon
... View more
08-15-2018
04:55 AM
|
1
|
1
|
697
|
POST
|
Check out linear referencing... What is linear referencing?—Help | ArcGIS Desktop Your line feature(s) will need M-values and a unique id to create routes. You should then be able to use the Make Route Event Layer tool to generate points off your table. Leon
... View more
08-07-2018
01:20 PM
|
2
|
3
|
697
|
POST
|
I've noticed that after upgrading to ArcGIS Pro 2.2 that one of my scripts stopped working properly... I rolled back to Pro 2.1 and it worked again. Upgraded to 2.2 and it fails again. Anyone else seen this? Thanks, Leon The script... gis = GIS(agol_url, agol_user, agol_pass) mySDfile = gis.content.get(itemid) mySDfile.publish(overwrite="true") The result.... KeyError Traceback (most recent call last)
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in
_check_publish_status(self, ret, folder)
6580 try:
-> 6581 serviceitem_id = ret[0]['serviceItemId']
6582 except KeyError as ke:KeyError: 'serviceItemId'
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
<ipython-input-3-eef2935b5006> in <module>()
----> 1 mySDfile.publish(overwrite="true")
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in
publish(self, publish_parameters, address_fields, output_type, overwrite, file_type, build_initial_cache)
6374 return Item(self._gis, ret[0]['serviceItemId'])
6375 else:->
6376 serviceitem_id = self._check_publish_status(ret, folder)
6377 return Item(self._gis, serviceitem_id)
6378 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in
_check_publish_status(self, ret, folder)
6581 serviceitem_id = ret[0]['serviceItemId']
6582 except KeyError as ke:
-> 6583 raise RuntimeError(ret[0]['error']['message'])
6584
6585 if 'jobId' in ret[0]:
KeyError: 'error'
... View more
08-06-2018
10:56 AM
|
0
|
2
|
1084
|
POST
|
Have you looked and the Plans and Drawings solution? Plans and Drawings | ArcGIS Solutions for Local Government We started implementing it a year ago and its been very helpful. You basically create polygons for plan extents and add the plans as an attachment to the feature. Leon
... View more
08-02-2018
08:17 AM
|
1
|
10
|
1618
|
POST
|
I'm wondering if you publish the downloaded FGDB as a new service and try that in a new web map, if the problem persists. That might be the easiest fix.
... View more
05-15-2018
11:21 AM
|
0
|
1
|
1192
|
POST
|
There is an add-in available in Pro called the ArcGIS Solutions Deployment Tool that has the capability to add and modify domains of hosted feature layers. ArcGIS Solutions Deployment Tool | ArcGIS Solutions Leon
... View more
04-11-2018
12:02 PM
|
3
|
9
|
2655
|
POST
|
I would try double quotes around each of your parameters. I found that helps when URLs or file paths are passed as arguments through task manager. Leon
... View more
04-09-2018
07:44 AM
|
1
|
0
|
6235
|
Title | Kudos | Posted |
---|---|---|
1 | 08-07-2024 07:30 AM | |
1 | 12-05-2020 08:36 AM | |
1 | 05-01-2023 12:50 PM | |
2 | 04-21-2023 06:45 AM | |
1 | 03-16-2021 01:38 PM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|