|
POST
|
Question 1- is branch versioning available for layers published from a user managed data store? (assuming no). Question 2 - given I have many feature classes (30+) I would like to publish with branch versioning enabled, is it recommended to publish each layer alone or several together, like in the case with have a particular business line that has many feature classes.
... View more
06-24-2022
04:24 PM
|
0
|
1
|
1466
|
|
POST
|
Update - it worked inconsistently but doesn't seem to be working at all now.
... View more
05-17-2022
03:16 PM
|
0
|
1
|
2223
|
|
POST
|
I came up with a work around using Arcade, example follows. Note, indicators require a FeatureSet so if you expect nulls create a null feature\ feature set to return,... just in case. And Arcade can be finicky. var nullFS = FeatureSet('{"fields":[{"alias":"objectid","name":"objectid","type":"esriFieldTypeInteger"},{"alias":"district","name":"district","type":"esriFieldTypeString"},{"alias":"project","name":"project","type":"esriFieldTypeString"},{"alias":"created_date","name":"created_date","type":"esriFieldTypeDate"}],"spatialReference":{"wkid":102100},"geometryType":"esriGeometryPoint","features":[{"geometry":{"x":-13138847.3052,"y":5875138.111400001,"spatialReference":{"wkid":102100}},"attributes":{"objectid":100,"district":"Walla Walla","project":"Temp","created_date":"2122-03-28T12:51:42-07:00"}}]}'); var fsin = FeatureSetByPortalItem(Portal('https://arcportal-ucop-corps.usace.army.mil/s0portal'), '67d897cf19244c5db57507851a3ff804', 0,['district','project','created_date']); var q = "project_org = 'usace'"; var fs = Filter(fsin,q); var testDT = (DateAdd(Now(),-2,"hours")); var testDT24 = (DateAdd(Now(),-24,"hours")); var objList = Array(0,""); for (var f in fs){ var fDT = (f.created_date); if (fDT < testDT){ if (fDT > testDT24){ Push(objList, f.project); } } } if (Count(objList) > 0){ var oString = "("; for (var x of objList) { oString = oString + ("'"+objList[x]+"'"); } oString = oString + ")"; oString = Replace(oString,"''","','"); var q = "project IN " + oString; Console(q); var fssub = Filter(fs,q); Return fssub; } else if (Count(objList) == 0) { Console("returning nullFS"); Return nullFS; }
... View more
04-29-2022
12:56 PM
|
0
|
0
|
2366
|
|
POST
|
Yes, thank you. I think I was passing the wrong object to the menu.
... View more
04-25-2022
08:59 AM
|
0
|
0
|
2251
|
|
POST
|
I can create the menu item but am stumped how I add the menu item to the FeatureTable's menu. Any suggestions would be great.
... View more
04-22-2022
12:23 PM
|
0
|
5
|
2329
|
|
POST
|
Same problem here. We use a python script to routinely update the data but the indicators are not catching it. And the statistic is what we need.
... View more
02-09-2022
03:52 PM
|
1
|
0
|
4553
|
|
POST
|
Is it possible to apply conditional formatting to cells based on attribute values using the FeatureTable widget. I can do it in a Dojo data grid but would like to have the data live linked to the hosted feature service which the widget does. I suppose I could use data grid event to push updated back to the hosted feature service as well.
... View more
10-13-2021
02:42 PM
|
0
|
0
|
704
|
|
BLOG
|
Hi All, I created a form in Connect with some simple JavaScript functions. Users select a project and the project's location (point) is calculated from JavaScript functions. Everything works fine on the Windows Survey123 app but on the web form it appears the point calculation fails as each point ends up a 0,0. The other JavaScript functions that control question relevancy seem to work fine on the web form. Is there something I am missing here? This is location calculation (yeah, I could do one js function for both x and y but meh) pulldata("@javascript","functions.js","project_y",${project}) + " " + pulldata("@javascript","functions.js","project_x",${project})
... View more
07-28-2021
11:02 AM
|
0
|
0
|
46976
|
|
POST
|
I know this is a bit old. Install the multi-cardinal field splitter and have the USGS feed respond with JSON. You can break down the JSON structure using the mc field splitter in a few steps. Seems like ESRI would have a methods to work with waterml but typically ESRI they don't, at least I haven't seen anything. Probably better, use the Notebook server and python, way more robust.
... View more
05-05-2021
01:56 PM
|
0
|
0
|
669
|
|
POST
|
When setting up for branch versioning do you generally recommend using headless admin accounts for the both the RDBMS and portal sides? The documentation seems to indicate that all access control rest in the Portal side.
... View more
01-07-2021
10:03 AM
|
0
|
0
|
3176
|
|
POST
|
I used create_replica to successfully create a replica between to GISs but cannot get the subsequent sync using the sync_replicated_items. Traceback shows an "HTTP Error 498" which eludes to the service URL not being passed a token. There is a subsequent error but that appears to be related to the first. Both GISs are AGOL based and am using the current API on my ArcPro install, v1.5. Traceback (most recent call last): File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py", line 831, in get resp = opener.open(url) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 532, in open response = meth(req, response) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 642, in http_response 'http', request, response, code, msg, hdrs) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 570, in error return self._call_chain(*args) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 504, in _call_chain result = func(*args) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\urllib\request.py", line 650, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 498: 498 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\Temp\test.py", line 33, in <module> sync_extint = arcgis.features.FeatureLayerCollection(ext_fs_url,extGIS).replicas.sync_replicated_items(ext_item,int_item,"NWD Levee Assessment") File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\managers.py", line 697, in sync_replicated_items out_path=tempfile.gettempdir()) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\layer.py", line 2347, in _synchronize_replica token=self._token) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py", line 906, in get return self.get(newpath, ssl, try_json, is_retry=True) File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\connection.py", line 798, in get params['f'] = 'json' TypeError: 'bool' object does not support item assignment
... View more
05-06-2019
09:40 AM
|
0
|
0
|
697
|
|
POST
|
Can repeats be used to collect multiple attachments per feature/record?
... View more
04-16-2019
08:17 AM
|
1
|
1
|
982
|
|
POST
|
I found the same thing, commenting out that function results in error further down C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\managers.py in overwrite(self, data_file) 1094 #if related_data_item.update(data=data_file): 1095 if related_data_item.update(data=data_file):-> 1096 published_item = related_data_item.publish(publish_parameters, overwrite=True) 1097 if published_item is not None: 1098 return {'success': 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) 6375 return Item(self._gis, ret[0]['serviceItemId']) 6376 else:-> 6377 serviceitem_id = self._check_publish_status(ret, folder) 6378 return Item(self._gis, serviceitem_id) 6379 C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in _check_publish_status(self, ret, folder) 6609 #print(str(job_response)) 6610 if job_response.get("status") in ("esriJobFailed","failed"):-> 6611 raise Exception("Job failed.") 6612 elif job_response.get("status") == "esriJobCancelled": 6613 raise Exception("Job cancelled.")Exception: Job failed.
... View more
10-25-2018
08:06 AM
|
0
|
0
|
2773
|
|
POST
|
Same problem, 10.6 portal. Does the commenting out lines 1029 and 1030 in managers.py circumnavigate the bug on 10.6 portal?
... View more
10-22-2018
08:38 AM
|
0
|
2
|
2773
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-09-2022 03:52 PM | |
| 1 | 04-16-2019 08:17 AM | |
| 8 | 03-21-2012 07:53 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-24-2022
06:12 PM
|