POST
|
Hi, I was hoping to achieve the following: In a pop-up on a feature layer on the mobile workers map, have a survey123 url scheme that points to a survey123 and passes some parameters to that survey. The basic url scheme worked and I was being redirected to the correct survey, but the passed fields wouldn't populate. Can anybody confirm this is not supported? #survey123 url #Survey123
... View more
11-22-2019
12:10 PM
|
0
|
0
|
523
|
BLOG
|
I am wondering how you generated the "Job ID" in the blog's example, is that the ObjectID...?
... View more
10-11-2019
07:21 AM
|
0
|
0
|
10843
|
POST
|
Hi, When attempting to clone a workforce project with the following code (AGOL to AGOL), I'm receiving a "UnboundLocalError: local variable 'user' referenced before assignment" error. Any ideas? The same code works well for cloning a standalone feature class (such as the workforce assignment layer), and I'm pretty sure it worked on workforce projects in the past as well. from arcgis.gis import GIS
gis1 = GIS("https://org1.maps.arcgis.com", "user1", "XXXXXX")
gis2 = GIS("https://org2.maps.arcgis.com/", "user2", "XXXXXX")
item = gis1.content.get("XXXXXXXXXXXXXXXXXXXXXXXXX")
gis2.content.clone_items([item])
... View more
07-03-2019
11:59 AM
|
0
|
0
|
357
|
POST
|
Works like a charm!! Tested on the windows version since IOS is still pending. Thank you for this this is great!!
... View more
05-23-2019
06:54 PM
|
1
|
3
|
1795
|
POST
|
Hi, Yes, I am using the pulldata("@geopoint", ${....},"y") function. I also saw elsewhere that there is a more general issue with coordinates not auto-captured in related tables, so perhaps this is a related issue. If this is to be addressed in a short release that is great news, and I will certainly be happy to test.
... View more
05-22-2019
11:43 AM
|
0
|
6
|
1795
|
POST
|
Hi James Tedrick, I am having the same issue, however, I am already using center = (lat, long) to pass the coordinates from collector to survey123, but now need to once again pass the same coordinates to a related table (repeat) within the survey. I tried to do so using a similar "concat" to the above, but it doesn't work (it actually seems to be working when testing in the survey123 connect app, but then doesn't work in the actual (iphone) app. Is there a fix/workaround for this?
... View more
05-20-2019
12:34 PM
|
0
|
8
|
1795
|
IDEA
|
In the workforce dispatcher's app, for a workflow that depends on selecting existing features (assets) for creating assignments, the supported rectangular selection is somewhat of a challenge. Adding polygon/freehand selection would be great. There also seems to be a limit in the number of assets that can be selected at once (~50-100?). Removing that barrier would be great too. Edit: Would also like to have a "point select" option. Right now, when adding assignments by pointing to my assets, the asset is not selected, rather the assignment is created at that point (the reason that's an important difference is that the "location" is passed on by picking up the address, instead of picking up my assetID (as configured in the pop up).
... View more
04-12-2019
06:47 AM
|
9
|
2
|
622
|
POST
|
Agreed, I would like that as an option as well; this can currently be achieved using the "predefined filter" widget.
... View more
03-31-2019
08:36 PM
|
1
|
0
|
819
|
POST
|
Hi, when running a simple clone_items script on an ArcGIS Online hosted table, I get the following error: "Failed to create Feature Service CobourgRoadsAnnualSummary: 'spatialReference'", None
This is correct, since my table doesn't have a spatial reference. Any ideas how to clone this item nevertheless...?
(also tried using arcgis online assistant, didn't work)
... View more
03-28-2019
06:41 AM
|
1
|
1
|
354
|
POST
|
Hi, When cloning an ArcGIS Online Operations Dashboard from one AGOL account to another, using the python api clone_items method, in some cases (but not in all), I cannot open the dashboard in the target source, and receive the following error on the screen "Cannot read property "header" of undefined". No exception is thrown during the cloning process. The underlying map was actually deep-cloned successfully. Any ideas? Thanks.
... View more
03-19-2019
02:07 PM
|
0
|
0
|
255
|
POST
|
I don't have a clue why, but the same code is now working. I actually went back to this post and copy pasted the above code to make sure, but I can't reproduce the error, using the exact same portals, users and feature layer ID. It even works with a non-administrative account in the target portal. Anyways, thank you very much Earl Medina and Aaron Pulver for the help with the cloning method.
... View more
03-01-2019
06:31 AM
|
0
|
0
|
1559
|
POST
|
Hi, yes that is correct, you also need to add the new response option in survey123 connect, and republish your survey. The survey123 "select one" options are not identical to domains at the schema level. True, when you first create them and publish the form for the first time they create the initial domain list, but from there on you need to manage those two lists if you want them show the same choices.
... View more
02-28-2019
08:21 PM
|
3
|
5
|
876
|
POST
|
When you say that clone_items works only with administrator accounts - do you mean only the initial administrator, or any administrator account? I tried a very basic clone between two administrator accounts (one initial, one not) as shown below, but it won't work. Anything I'm missing? The item in the example is a simple line hosted feature service. from arcgis.gis import GIS
from IPython.display import display
gis1 = GIS("https://esrica-services.maps.arcgis.com", "testMigration_pw", "XXXXXXX")
gis2 = GIS("https://esrica-pw.maps.arcgis.com", "testMigrationpw", "XXXXXXX")
item = gis1.content.get("05dc246acf9e41b0bef594ba81980da9")
cloned_items = gis2.content.clone_items([item])
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_clone.py in clone(self)
1452 # Explicitly add layers first and then tables, otherwise sometimes json.dumps() reverses them and this effects the output service
-> 1453 feature_service = FeatureLayerCollection.fromitem(new_item)
1454 feature_service_admin = feature_service.manager
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in fromitem(cls, item)
8188 def fromitem(cls, item):
-> 8189 if not item.type.lower().endswith('service'):
8190 raise TypeError("item must be a type of service, not " + item.type)
AttributeError: 'NoneType' object has no attribute 'type'
During handling of the above exception, another exception occurred:
_ItemCreateException Traceback (most recent call last)
<ipython-input-14-ab982857fca6> in <module>()
----> 1 cloned_items = gis2.content.clone_items([item])
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py in clone_items(self, items, folder, item_extent, use_org_basemap, copy_data, search_existing_items, item_mapping, group_mapping)
3419 wgs84_extent = clone._wgs84_envelope(service_extent)
3420 deep_cloner = clone._DeepCloner(self._gis, items, folder, wgs84_extent, service_extent, use_org_basemap, copy_data, search_existing_items, item_mapping, group_mapping)
-> 3421 return deep_cloner.clone()
3422
3423 def bulk_update(self, itemids, properties):
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_clone.py in clone(self)
569 def clone(self):
570 with concurrent.futures.ThreadPoolExecutor(max_workers=20) as executor:
--> 571 results = executor.submit(self._clone, executor).result()
572 return results
573
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\concurrent\futures\_base.py in result(self, timeout)
430 raise CancelledError()
431 elif self._state == FINISHED:
--> 432 return self.__get_result()
433 else:
434 raise TimeoutError()
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\concurrent\futures\_base.py in __get_result(self)
382 def __get_result(self):
383 if self._exception:
--> 384 raise self._exception
385 else:
386 return self._result
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\concurrent\futures\thread.py in run(self)
54
55 try:
---> 56 result = self.fn(*self.args, **self.kwargs)
57 except BaseException as exc:
58 self.future.set_exception(exc)
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_clone.py in _clone(self, excecutor)
560 if item:
561 item.delete()
--> 562 raise ex
563
564 level += 1
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\concurrent\futures\thread.py in run(self)
54
55 try:
---> 56 result = self.fn(*self.args, **self.kwargs)
57 except BaseException as exc:
58 self.future.set_exception(exc)
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\_impl\common\_clone.py in clone(self)
1755 return new_item
1756 except Exception as ex:
-> 1757 raise _ItemCreateException("Failed to create {0} {1}: {2}".format(original_item['type'], original_item['title'], str(ex)), new_item)
1758
1759
_ItemCreateException: ("Failed to create Feature Service myLineLayer: 'NoneType' object has no attribute 'type'", None)
... View more
02-27-2019
01:22 PM
|
0
|
1
|
1559
|
Title | Kudos | Posted |
---|---|---|
1 | 03-03-2020 06:57 AM | |
1 | 07-09-2020 12:52 PM | |
1 | 09-28-2018 12:53 PM | |
1 | 12-27-2018 09:00 PM | |
1 | 01-17-2020 01:23 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|