IDEA
|
Ideally, the user would be able to subscribe to individual items, individual groups, or to the results of a query.
... View more
12-13-2019
06:00 AM
|
0
|
0
|
977
|
POST
|
I'd like to update the Portal system properties using the Python API. The documentation seems to indicate that it can be done. However, making an assignment to System.properties doesn't appear to udpate the system properties. from arcgis.gis import GIS
gis = GIS(gis_base_url, user, password)
system_properties = gis.admin.system.properties
system_properties['privatePortalURL'] = system_properties['WebContextURL']
gis.admin.system.properties = system_properties
... View more
12-06-2019
07:35 AM
|
0
|
0
|
490
|
POST
|
Hi Kelly, We're currently on 10.6.1. FYI, here are the repro steps: In Portal, click on the Content tab. Click the My Groups tab. From the list of My Groups, click the name of a group that has group categories defined. From the list of Group Categories, click the name of a category that has a number beside it. No content appears in the search results. There should be as many results as are indicated by the number in the Group Categories list. Thanks, Jon.
... View more
12-05-2019
09:54 AM
|
0
|
0
|
1354
|
POST
|
We're also experiencing this issue. Kelly Gerrow, do you know if an issue has been created for this yet? If not, I can create a support case with Esri Canada.
... View more
12-05-2019
08:33 AM
|
0
|
2
|
1354
|
POST
|
I'm also following this article, and have at least been able to get the symbol set to appear, but there are no contents in the symbol set: I also noticed that, when I update the JSON of the symbol sets, the updated text is not preserved on one of them, and, on the other, I get an error indicating that the JSON is invalid (even though it's the exact same JSON that I used in the other one, and it validates just fine: Unminified JSON: [{ "type": "esriPMS", "url": "https://cahssymbols.z9.web.core.windows.net/cahs.incident.airQuality.png", "imageData": "iVBORw0KGgoAAAANSUhEUgAAABoAAAAmCAYAAADa8osYAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAABBpJREFUSIntl21InWUYx3+X7phpgZ2WR+tMbYWBzdqi02IRnjhRsDW3UxDoJipm5KcCk9IzXwjMMnqjIuiDSeSXWlFZ2wdbKcRGIY0oExn4so7YGeNAs4V5yqsPz/3Yc57OiyuKgq4v931d9/++f/f7cz+b+Ids0/+gvxWkqlcA9wE7AR/wCxAFJoG3RWT5L4FUNQ/oBdqBi9LIXlLVfuApE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mJt8X1pqjwhIs+nay/jpSoih1T1GNYb7eY0skmgS0TG0pRnBxnYp0BAVa/GeuSXYI0uBnwuIqeytbEhkAM4h7XT/pT9u/6P/lOg3wCAszXEjPotTwAAAABJRU5ErkJggg==", "contentType": "image/png", "width": 19, "height": 28, "angle": 0, "xoffset": 0, "yoffset": 0 }, { "type": "esriPMS", "url": "https://cahssymbols.z9.web.core.windows.net/cahs.incident.health.adverseReaction.png", "imageData": "iVBORw0KGgoAAAANSUhEUgAAABoAAAAmCAYAAADa8osYAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAelJREFUSInt1TGI01Acx/Hvv1a7XJdytp2uDg7igYJLNVOxQ+t0UlwdktmhUtxcispRHJzcDroWLUdAcJFrh4KFgkqc6k2Cgy0IgaRO2otDUqhem+Zqe9yQH2TJP+//ebzkvUQ5pURDaCWQ4ziPgOsr6n0gIvWZEJAHCiuCRsBcaG1ZBL0Hfi3Z+/Ak0I6I/FgS+itnZulCaCWQAJvAb8BcB7QBPAY04KJ37yvwEngBjP8bqlarCeA1cO2f0iXgOXAb2CHAXvOFGo3GPrAdi8VGqqq+KpfLhmVZ52u1WlbX9bvj8fhOLpd70263m1PDPonIh8CQYRj0+/3tSCRCq9XaUBRFm9SazSb1eh1N0+h2uwXbtgvxeHxSfgYEhzqdDgDZbBZFUY7VVVWlUqlgmia9Xo98Pj+vlT9k2zYAqVTKAY5mPZNOp8+ZpollWUeA492e+XHMhTKZDAC6rn8Tkcscf+GbwHcgWiqVbgDGvF6+ULFYRER+Oo6zBdSAytSsY8CeN/4Q+OyH+EKJRIJkMvl0OBzuAg+BW8Bb4AJwD7iCu0wPpiZwcghgMBjsiYgAT4Cb3jXJCHcTv1uELIS87AL7wH3gKu4R9BH3Nz0MggSFAL7gHkNL50ye3iEUQmuARKR4KtA6E0JL5w/1woNGtxAJawAAAABJRU5ErkJggg==", "contentType": "image/png", "width": 19, "height": 28, "angle": 0, "xoffset": 0, "yoffset": 0 } ]
... View more
09-27-2019
06:10 AM
|
0
|
0
|
1340
|
POST
|
It turns out that this was related to a CORS configuration problem on the hosting site. I had specified https://<my portal url>/* as the allowed origin, but it only works when the "/*" was removed.
... View more
09-26-2019
06:35 AM
|
2
|
1
|
820
|
POST
|
I've created a custom widget and deployed it to ArcGIS Enterprise. In the embedded WAB, I've created a new application, and I'm trying to add the custom widget to it. On the Custom tab of the Choose Widget window, my custom widget appears, but when I click it and click OK, nothing happens. Any way to debug this or to figure out why I can't add my custom widget to the web app? Looking at the Web Developer Tools in Firefox, I can see that when I click OK, a GET request is issued for manifest.json, which returns with a status of 200, but there's no content to the response. If I edit and resend the request without modification, it also returns with a status of 200, but with the manifest.json content as its payload. Maybe Derek Law can provide some insight?
... View more
09-25-2019
06:16 AM
|
0
|
2
|
906
|
POST
|
Hi Munacghiso, Partial success -- I was using v1.6.0, so I went back to v1.5.1, and I'm now able to get the Description of the item to update. Other attributes, such as Credits, are still not updating, however.
... View more
03-26-2019
04:52 AM
|
1
|
1
|
5434
|
POST
|
Hi Egge-Jan, Thank you for your response. However, I'm trying to go in the other direction. I have an XML metadata document that I'm applying to the item. I'm wishing to have the item properties updated without having to write additional code to parse the XML and explicitly set the properties on the item. Jon.
... View more
03-25-2019
09:53 AM
|
1
|
1
|
5434
|
POST
|
Through the ArcGIS Portal UI, when I edit the metadata for a portal item, the item's properties are updated when I save the metadata record: However, when I update the item's metadata from the Python API, the item's properties are not updated. I've used the following 2 methods to update the item's metadata: item.metadata = esri_metadata_file_name item.update (metadata=esri_metadata_file_name) Is there a way to, using the Python API, to update the item's properties when the metadata is updated?
... View more
03-22-2019
01:40 PM
|
0
|
9
|
6505
|
POST
|
Hi simo xu, What do you mean by "turn off the Python Exception"?
... View more
02-25-2019
07:16 AM
|
0
|
1
|
2080
|
POST
|
I've created a Python toolbox using the Python toolbox template. I've configured Visual Studio 2017 to recognize .pyt files as Python files. I've used the instructions here to set up debugging for my Python toolbox. To debug, I attach the Visual Studio debugger to the ArcGISPro.exe process as Python code, as shown in the screen shot below. I've set breakpoints in my code. However, when I run a tool from the toolbox, none of the breakpoints are hit. Does anyone have any insight as to why I can't debug? Visual Studio 2017 ArcGIS Pro 2.2 Python 3.6
... View more
02-25-2019
06:56 AM
|
0
|
2
|
1236
|
POST
|
I've defined a simple Python script to download a file: import arcpy
import requests
import os
import urllib
def download_file(url):
output_file_name = get_output_file_name(url)
with open(output_file_name, 'wb') as output_file:
response = requests.get(url)
output_file.write(response.content)
arcpy.SetParameterAsText(1, output_file_name)
def get_output_file_name(url):
path = urllib.parse.urlparse(url).path
base_file_name = os.path.basename(path)
scratch_folder = arcpy.env.scratchFolder
return os.path.join(scratch_folder, base_file_name)
if __name__ == "__main__":
url = arcpy.GetParameterAsText(0)
download_file(url) and, I've created a script tool in a custom toolbox with an input parameter (the url of the file to download) and an output parameter (the path to the downloaded file). To validate the tool, I need to set the value of the output parameter. I have a method for this in my script (get_output_file_name). How can I call this from within my Tool Validator code in the custom toolbox?
... View more
02-21-2019
11:14 AM
|
0
|
1
|
375
|
POST
|
It turns out that, in spite of what the API documentation says as of today, that you must share the item using the group's id, and not the group's name. cbmt.share(org=True, groups=basemaps_group.id)
... View more
02-06-2019
12:51 PM
|
4
|
3
|
5048
|
POST
|
A Portal for ArcGIS administrator can configure Living Atlas content for the organization through the Portal UI. The ArcGIS Python API documentation seems to indicate that you can get access to a resource to manage Living Access content, but no additional documentation is provided. Quering the resource endpoint yields the following: portal_admin_manager.living_atlas
<LivingAtlas at https://devweb.tcgis.ca/portal/portaladmin/system/content/livingatlas> However, there doesn't appear to be any documentation on consuming this REST endpoint. Same issue with ArcGIS Online utility services.
... View more
02-05-2019
08:50 AM
|
0
|
0
|
437
|
Title | Kudos | Posted |
---|---|---|
1 | 02-19-2013 08:18 AM | |
1 | 08-13-2015 06:54 AM | |
2 | 01-17-2017 09:02 AM | |
1 | 03-25-2019 09:53 AM | |
1 | 03-26-2019 04:52 AM |
Online Status |
Offline
|
Date Last Visited |
12-10-2020
03:10 PM
|