|
POST
|
nope i couldn't get it to work in FME i just used append in Pro 😞
... View more
07-04-2024
06:26 AM
|
0
|
0
|
3390
|
|
POST
|
has anyone else had an issue logging into Survey123 connect using their organisations url, it works fine on the survey123 website
... View more
07-04-2024
06:24 AM
|
0
|
11
|
3186
|
|
POST
|
code being ran: # Create new group in the target environment
#shared_group = target.groups.create(title=group.title, tags=group.tags)
# Clone source items to the target environment
for form_item in sourceForms:
# Obtain the feature service associated with the survey
related_items = form_item.related_items('Survey2Service','forward')
# Obtain the additional items that have a relationship with the survey
additional_items = form_item.related_items('Survey2Data','forward')
all_items = [form_item] + related_items + additional_items
print("Source items: ", *all_items, sep="\n")
# Create new folder according to survey name
title = form_item.title.replace(" ", "_")
folderName = "Survey-" + title
target.content.create_folder(folderName)
# Clone all items to the new folder in target environment
cloned_items = target.content.clone_items(items=all_items, folder=folderName, copy_data=False)
# Check the feature count in cloned feature layer. Feature count should 0 because existing data is not copied
try:
print("Result feature count: ", cloned_items[0].layers[0].query(where='1=1', return_count_only=True))
except:
print("error with counts")
for item in cloned_items:
if item.type == 'Form':
# Update the form item to ensure all resources are rebuilt
downloaded_item = item.download(file_name=item.id+'.zip')
item.update({}, downloaded_item)
os.remove(downloaded_item)
# Share the form item to the group
item.update(item_properties={'tags':'Valve Survey blank'})
#item.share(groups=shared_group.id)
# Share source feature service to group
source_fs = item.related_items('Survey2Service','forward')[0]
source_fs.update(item_properties={'tags':'Valve Survey blank'})
#source_fs.share(groups=shared_group.id)
else:
pass Error: ---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
/opt/conda/lib/python3.11/site-packages/arcgis/_impl/common/_clone.py in update_form(self, target, new_item, clone_mapping)
5406 if related_item in service_related:
-> 5407 new_id = clone_mapping["Services"][related_item["url"]]["id"]
5408 feature_service = target.content.get(new_id)
KeyError: 'https://services3.arcgis.com/Ee____hzcB/arcgis/rest/services/service_8a209f____e6cf8/FeatureServer'
During handling of the above exception, another exception occurred:
Exception Traceback (most recent call last)
/opt/conda/lib/python3.11/site-packages/arcgis/_impl/common/_clone.py in clone(self)
5162 original_item = self.info
-> 5163 self.update_form(self.target, new_item, self._clone_mapping)
5164 else:
/opt/conda/lib/python3.11/site-packages/arcgis/_impl/common/_clone.py in update_form(self, target, new_item, clone_mapping)
5446 except Exception as ex:
-> 5447 raise Exception(
5448 "Failed to update {0} {1}: {2}".format(
Exception: Failed to update Form Valve Survey App V2 Blank: 'https://services3.arcgis.com/Ee____hzcB/arcgis/rest/services/service_8a209f____e6cf8/FeatureServer'
During handling of the above exception, another exception occurred:
_ItemCreateException Traceback (most recent call last)
/tmp/ipykernel_36/3848405123.py in <cell line: 0>()
18
19 # Clone all items to the new folder in target environment
---> 20 cloned_items = target.content.clone_items(items=all_items, folder=folderName, copy_data=False)
21
22 # Check the feature count in cloned feature layer. Feature count should 0 because existing data is not copied
/opt/conda/lib/python3.11/site-packages/arcgis/gis/__init__.py in clone_items(self, items, folder, item_extent, use_org_basemap, copy_data, copy_global_ids, search_existing_items, item_mapping, group_mapping, owner, preserve_item_id, **kwargs)
8758 wab_code_attach=kwargs.pop("copy_code_attachment", True),
8759 )
-> 8760 return deep_cloner.clone()
8761
8762 def bulk_update(
/opt/conda/lib/python3.11/site-packages/arcgis/_impl/common/_clone.py in clone(self)
1326 > 0
1327 ):
-> 1328 return self._clone_synchronous()
1329 # elif len([node for node in self._graph.values() if isinstance(node, _StoryMapDefinition)]) > 0:
1330 # return self._clone_synchronous()
/opt/conda/lib/python3.11/site-packages/arcgis/_impl/common/_clone.py in _clone_synchronous(self)
1219 if item:
1220 item.delete()
-> 1221 raise ex
1222
1223 return [i for i in self._get_created_items() if isinstance(i, arcgis.gis.Item)]
/opt/conda/lib/python3.11/site-packages/arcgis/_impl/common/_clone.py in _clone_synchronous(self)
1201 for node in leaf_nodes:
1202 try:
-> 1203 node.clone()
1204 except _ItemCreateException as ex:
1205 exceptions.append(ex)
/opt/conda/lib/python3.11/site-packages/arcgis/_impl/common/_clone.py in clone(self)
5175
5176 except Exception as ex:
-> 5177 raise _ItemCreateException(
5178 "Failed to create {0} {1}: {2}".format(
5179 original_item["type"], original_item["title"], str(ex)
_ItemCreateException: ("Failed to create Form Valve Survey App V2 Blank: Failed to update Form Valve Survey App V2 Blank: 'https://services3.arcgis.com/Ee____hzcB/arcgis/rest/services/service_8a209f____e6cf8/FeatureServer'", <Item title:"Valve Survey App V2 Blank" type:Form owner:Stuart.Moore@cadentgas.com_CadentFSM>)
... View more
07-03-2024
04:49 AM
|
0
|
0
|
851
|
|
POST
|
i'm trying to clone a Survey from one org to another, ive tried the guides here: Clone surveys from one organization to another | ArcGIS Survey123 Survey123-tools/Clone_Surveys at main · Esri/Survey123-tools · GitHub but it never actually copies the survey i have also tried the "ArcGIS Assistant " the survey isnt that complicated its a point feature layer and 10 related tables, each has no more than 10,000 records (most have 1000 to 5000) including attachments has anyone managed to clone their survey? Stu
... View more
07-03-2024
03:32 AM
|
0
|
1
|
871
|
|
POST
|
i've tried the same notebook in pro and get a more of an error message \nField LEAKAGE__1 has invalid html content.\n(Error Code: 400) has anyone had to deal with this type of error thanks
... View more
06-21-2024
11:23 PM
|
0
|
0
|
787
|
|
POST
|
i'm trying to copy an item from one orginsation to another using an AGOL notebook but i get this error for a particular feature service "The kernel appears to have died. It will restart automatically." any ideas?
... View more
06-21-2024
07:11 AM
|
0
|
1
|
809
|
|
POST
|
i answered my own question i managed to get it to display a field other than its object id by changing the display field on the actual feature service for the layer, and it now displays the address in the edit widget instead of the object id
... View more
06-14-2024
06:50 AM
|
0
|
0
|
2615
|
|
POST
|
i'm having the same issue, has anyone come up with a solution? thanks Stu
... View more
06-14-2024
06:33 AM
|
0
|
0
|
2618
|
|
POST
|
this is a bit of a unique scenario so not expecting anything but... i have a edit widget that allows the user to select a polygon and update a field from a drop down and add an attachment, what i would like to do is if they select a specific value from the drop down and don't add the attachment it would stop them from submitting the update to the polygon. is there anyway to do this? Stu
... View more
05-10-2024
12:25 AM
|
0
|
0
|
640
|
|
POST
|
thanks i tried that but thats where i was getting the geometry issues
... View more
04-21-2024
11:48 PM
|
0
|
0
|
1615
|
|
POST
|
Hi Dan, thanks for that, i checked and both have the same coordinate system with then wkid of 27700. from manually doing the intersection in Pro on another computer around 260k of the points fall within polygons i did also try this method i found on another post and this looks more promising but flags some geometry issues which i need to work out how to fix...
... View more
04-10-2024
05:01 AM
|
0
|
0
|
1722
|
|
POST
|
help, i have two datasets a FGDB with a polygon feature class containing over 350k polygons and a csv file with an xy point of a little over 275k records. using Arcgis api for python (on a computer that doesn't have any ESRI software like Pro or Desktop) i've successfully read the polygons into a spatial dataframe and read the csv file also into a spatial dataframe but when i try and identify which points intersect the polygons i get this error: i have tried a few other ways but non seem to work, even the documentation doesn't seem to help any ideas?
... View more
04-10-2024
02:04 AM
|
0
|
4
|
1799
|
|
POST
|
we have the same issues, also if you have a filter on a layer that your editing and the filter's job is to hide the feature after a field has been populated the edit widget just spins after you update
... View more
03-21-2024
03:18 AM
|
2
|
0
|
7361
|
|
POST
|
is it possible to export a AGOL feature class including all its related features / tables / attachment's into a blank FGDB just creating the blank structure? i've tried exporting the feature class as a FGDB but it fails and also a replica and that fails also, i think its because of the complexity of the feature class and its volume of records and attachments thanks Stu
... View more
02-08-2024
01:19 AM
|
0
|
0
|
697
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-16-2025 02:25 AM | |
| 1 | 09-08-2025 07:14 AM | |
| 8 | 07-17-2025 01:23 AM | |
| 3 | 07-04-2025 02:55 AM | |
| 1 | 06-27-2025 03:41 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-17-2026
05:42 AM
|