POST
|
Josh - so much gold in this reply! I've copied it to my notes for future reference. Thanks this has done just what I was after - thank you for explaining why an array is the preferred option too. Gotta love the internet! 😄
... View more
Sunday
|
0
|
0
|
48
|
POST
|
Thanks for your help with this one Zach. It didnt play ball exactly as I had intended but has led me down an interesting path learning about When statements. Much thanks!
... View more
Sunday
|
0
|
0
|
49
|
POST
|
Hi All, Apologies if my terminology is incorrect - I'm a novice in Arcade. I am trying to avoid having multiple label classes by merging my individual arcade label class expressions into one. However I am finding that if one return is met, the following return will not be labelled. Perhaps the best explanation is an example: I want to label X when ASSETID is not NULL, additionally i want to label Y when DIAMETER is not NULL AND when width is either NULL or "UNKNOWN". if (IsEmpty($feature.ASSETID) == False){
return "X"}
else if ((IsEmpty($feature.DIAMETER) == False) && ((IsEmpty($feature.WIDTH)) || ($feature.WIDTH == "UNKNOWN")))
if ($feature.DIAMETER != "UNKNOWN"){
return "Y"} I want both labels to appear, but it seems if X is labelled then Y isnt dealt with. I will eventually have a few more labels (eg Z...) I want to also include but am hoping to get this working first. In researching I have found examples on how to create multiple if else expressions on a single label but haven't found anything on creating multiple labels without any relationship to the previous "returns" output within the one label expression. Thanks for taking your time to look at this and I hope this makes sense. Cheers Amber
... View more
Friday
|
0
|
4
|
164
|
IDEA
|
Hi all, Im working in AGOL but seem to completely unable to select multiple layers. As Caitlin noted previously - as soon as the first layer is selected (regardless of holding down shift/ctrl/anything else) the Set query panel pops up. Any advice on what im doing wrong here?
... View more
11-23-2023
07:49 PM
|
0
|
0
|
855
|
BLOG
|
Hi again, Any suggestions on how to deal with hosted view layers? I've come across some users with these and the code throws an error - Exception: Unable to delete item. This service item has a related Service item. ---------------------------------------------------------------------------
Exception Traceback (most recent call last)
Input In [44], in <cell line: 2>()
1 # delete items in all other folders
2 for f in old_member.folders:
----> 3 recursive_delete(old_member.items(folder=f, max_items=1000))
Input In [37], in recursive_delete(items)
9 elif dry_run["details"]["message"] == f"Unable to delete item {item.id}. Delete protection is turned on.":
10 item.protect(enable=False)
---> 11 item.delete()
12 elif dry_run["details"]["message"] == "Unable to delete item. This service item has a related Service item":
13 recursive_delete(dry_run["details"]["offending_items"])
File /opt/conda/lib/python3.9/site-packages/arcgis/gis/__init__.py:12696, in Item.delete(self, force, dry_run)
12694 return {"can_delete": False, "details": error_dict}
12695 else:
> 12696 return self._portal.delete_item(self.itemid, self._user_id, folder, force)
File /opt/conda/lib/python3.9/site-packages/arcgis/gis/_impl/_portalpy.py:761, in Portal.delete_item(self, item_id, owner, folder, force)
759 else:
760 post_data = self._postdata()
--> 761 resp = self.con.post(path, post_data)
763 if resp:
764 return resp.get("success")
File /opt/conda/lib/python3.9/site-packages/arcgis/gis/_impl/_con/_connection.py:1407, in Connection.post(self, path, params, files, **kwargs)
1405 if return_raw_response:
1406 return resp
-> 1407 return self._handle_response(
1408 resp=resp,
1409 out_path=out_path,
1410 file_name=file_name,
1411 try_json=try_json,
1412 force_bytes=kwargs.pop("force_bytes", False),
1413 )
File /opt/conda/lib/python3.9/site-packages/arcgis/gis/_impl/_con/_connection.py:900, in Connection._handle_response(self, resp, file_name, out_path, try_json, force_bytes, ignore_error_key)
898 return data
899 errorcode = data["error"]["code"] if "code" in data["error"] else 0
--> 900 self._handle_json_error(data["error"], errorcode)
901 return data
902 else:
File /opt/conda/lib/python3.9/site-packages/arcgis/gis/_impl/_con/_connection.py:923, in Connection._handle_json_error(self, error, errorcode)
920 # _log.error(errordetail)
922 errormessage = errormessage + "\n(Error Code: " + str(errorcode) + ")"
--> 923 raise Exception(errormessage)
Exception: Unable to delete item. This service item has a related Service item
(Error Code: 400) Thanks again!
... View more
02-26-2023
08:56 PM
|
0
|
0
|
921
|
BLOG
|
Champion! Thank you Peter! All running smoothly now 😊
... View more
02-22-2023
02:53 PM
|
0
|
0
|
973
|
BLOG
|
Hi all, For the section: # delete items in all other folders for f in old_member.folders: recursive_delete(old_member.items(folder=f, max=1000)) I'm getting the following error: TypeError: items() got an unexpected keyword argument 'max' Anyone got any advise for an ArcGIS API for Python beginner? Thanks in advance!
... View more
02-21-2023
09:06 PM
|
0
|
0
|
1017
|
POST
|
Hi Jordan, Did you get any feedback or advice on this question? We are seeing our connections spike but trying to track down the cause is proving to be a challenge. Also - did you see any unintended consequences as a result of increasing your max connections to 300? Cheers, Amber
... View more
10-06-2021
07:26 PM
|
0
|
0
|
637
|
POST
|
Hi John, Yes the "magic fixes" always leave me with uncertainty. Ill post here if I get any resolutions from Esri. Thanks for replying! Amber
... View more
08-18-2021
03:07 PM
|
0
|
0
|
1875
|
POST
|
Hi John, Just wondering if you got any answers from Esri on this one? Cheers Amber
... View more
08-17-2021
08:59 PM
|
0
|
2
|
1893
|
IDEA
|
Hi Krystal, Glad its been of use to you! Collector does have a copy function (to copy from one feature to another). If you don’t need any of the other web app functionality maybe that will solve some of that back and forth? Below is a mobile workflow. Ive run through it on a Desktop install of Collector and it all worked, but haven’t tried on mobile. https://support.esri.com/en/technical-article/000017946 Good luck! Amber
... View more
03-12-2020
03:15 PM
|
0
|
2
|
1758
|
POST
|
Hi Uri, I managed to find a non-MOE pc and installed the most up to date survey 123 connect and as you said it all works perfectly. So I think I’m going to publish my survey up on AGOL using the newer version and pressure my IT team to get cracking on the upgrade! Thanks so much for your assistance Uri! Cheers Amber
... View more
02-06-2020
10:16 PM
|
1
|
0
|
788
|
POST
|
Hi Uri, Thank you for your reply! Unfortunately my organisation has a fully Managed Operating Environment which is forcing us to stick to 3.0.127 until we can get the upgrade though the IT department. I do wonder if version 'compatibility' might be causing this issue. In regards to your advice: 1. There is only one feature service, which is displaying as a point 2. I've opened it in an AGOL webmap and Arcgis pro and only get symbology options that apply to a point 3. I reloaded the form to create a fresh Survey in Connect and came up with the same issue 4. Below is a screenshot of the layer in webmap with the point displaying in the TOC but the selection from the attribute table showing as a polygon spatially Ill attach the form as well Thanks for the help!
... View more
02-06-2020
06:25 PM
|
0
|
3
|
788
|
Title | Kudos | Posted |
---|---|---|
2 | 03-06-2023 06:37 PM | |
1 | 10-11-2018 07:45 PM | |
1 | 05-20-2019 10:57 PM | |
4 | 09-17-2019 04:29 PM | |
1 | 02-06-2020 10:16 PM |
Online Status |
Offline
|
Date Last Visited |
Monday
|