POST
|
Thanks for this Elisabeth! I'm curious about the disparity between AGO in Pro in the implementation of Arcade regarding dictionaries now.
... View more
10-26-2023
03:12 PM
|
0
|
0
|
1421
|
POST
|
Ok new clues. I'm going to mark your other response as the solution since it got us to where we need to be, but the rest looks like we have found a potential bug. A colleague tested for me and the expression works just fine in AGO. For the heck of it, I saved a copy of that layer in AGO with the working label expression and brought it into Pro. Labeling failed to work. Checked the expression and same error about field not found. I tried to add Expects($feature, "Type") and that returns a new error of invalid JSON. So everything works fine in AGO but there's a problem with this solution in Pro. Thanks for everything!
... View more
10-26-2023
12:04 PM
|
0
|
0
|
1465
|
POST
|
I noticed that and i'm still getting the same error about field not found. Perhaps this is an issue with the label expression builder? I'm trying to fetch attributes with that interface. (ArcGIS Pro 3.1.3)
... View more
10-26-2023
11:39 AM
|
0
|
2
|
1482
|
POST
|
I should have mentioned I tried that as well but when doing this I'm given an error of field not found. I know the format for Arcade attribute labels is $feature.fieldname var stuff = {
"0": "SCC",
"101": "SEP",
"4": "CLT",
"23": "CGS",
"8": "CTR",
"7": "CTH",
"14": "DSW",
"9": "ECT",
"5": "FTH",
"21": "GPS",
"10": "GSL",
"3": "ITH",
"22": "ITS",
"13": "ISH",
"20": "OSR",
"17": "PTC",
"26": "PCT",
"24": "SAL",
"18": "STC",
"15": "SWR",
"19": "STR",
"6": "TFA",
"12": "3SS",
"11": "2SS",
"100": "GPE",
"25": "WHI",
"102": "RET",
"103": "TSI",
"104": "POL"
};
var keyField = "Type";
// Look up the value based on the key from the field
var lookupKey = $feature[keyField];
var lookupResult = Dictionary(stuff)[lookupKey];
return lookUpResult;
... View more
10-26-2023
11:17 AM
|
0
|
5
|
1500
|
POST
|
I have a numerical attribute field containing integer values and would like to have the label expression display a corresponding value for each integer. I have created a dictionary representing these values. However, the label expression dialogue indicates an error in line 2: Invalid Key. I cannot see anything wrong with the format of the dictionary based on other examples found within the forums. The Arcade expression is shown below. var stuff = {
0: "SCC",
101: "SEP",
4: "CLT",
23: "CGS",
8: "CTR",
7: "CTH",
14: "DSW",
9: "ECT",
5: "FTH",
21: "GPS",
10: "GSL",
3: "ITH",
22: "ITS",
13: "ISH",
20: "OSR",
17: "PTC",
26: "PCT",
24: "SAL",
18: "STC",
15: "SWR",
19: "STR",
6: "TFA",
12: "3SS",
11: "2SS",
100: "GPE",
25: "WHI",
102: "RET",
103: "TSI",
104: "POL"
};
var keyField = "Type"; //this is the attribute field with the integer values
var lookupKey = $feature[keyField];
var lookupResult = Dictionary(stuff)[lookupKey];
... View more
10-26-2023
10:45 AM
|
0
|
9
|
1563
|
POST
|
Supposedly the Arcade Distinct function will be working in the 3.2 release...(several years after it was first shown in the documentation). You can read comments from others here.
... View more
10-12-2023
12:29 PM
|
1
|
0
|
516
|
POST
|
like i said, 3.1.3 fixed this for me...3.2 isn't far off so I wouldn't be hanging on to 3.0 for too long...
... View more
10-05-2023
05:39 AM
|
0
|
0
|
448
|
POST
|
I am happy to say that upgrading to the latest patch of 3.1.3 has resolved this issue for me! I hope this works for the rest of you!
... View more
10-04-2023
03:16 PM
|
0
|
0
|
458
|
POST
|
I am happy to say that upgrading to the latest patch of 3.1.3 has resolved this issue for me!
... View more
10-04-2023
03:15 PM
|
0
|
0
|
2469
|
POST
|
@TomKukitz Do you have any documentation related to this?
... View more
10-04-2023
02:30 PM
|
0
|
2
|
473
|
POST
|
I don't see how this is the solution when the issue is with HFL's and AGO.
... View more
10-04-2023
02:29 PM
|
1
|
1
|
2477
|
POST
|
On this particular device, I'm running a standalone install of miniconda 23.7.3 (no ArcGIS Pro environment). This comes with ArcGIS 2.1.0.3. According to the Esri documentation, "your installed ArcGIS API for Python version must EXACTLY match this installed arcgis-map-ipywidget" According to the GitHub wiki for the ArcGIS API, the latest version is 2.0.0 (February 2022). When I install Jupyter Lab and attempt to install the ArcGIS map ipywidget extension via Jupyter Lab, it installs v1.8.1. the Jupyter Labextension update command has been deprecated. Has the development on the API ceased? The last update appears to be >1.5 years ago. Is there a way to get the extension/widget to work with Jupyter Lab and the latest ArcGIS API??
... View more
09-18-2023
09:57 AM
|
1
|
1
|
592
|
POST
|
the documentation suggests it is available but when i search power automate for the connector I don't see it! https://doc.arcgis.com/en/microsoft-365/latest/power-automate/set-up-the-arcgis-enterprise-connector.htm
... View more
08-17-2023
01:27 PM
|
0
|
2
|
1339
|
POST
|
Does anyone have any suggestions regarding this? Does anyone utilize Feature Services as an input to GP Tools?? Here's what Chat GPT 4 had to offer: It sounds like you're facing an issue while trying to publish a geoprocessing tool to ArcGIS Server that uses a feature service as input. The problem arises because ArcGIS Server doesn't support registering a feature service with ArcGIS Datastore, which leads to a failure during the validation process. Here are a few steps you can consider to resolve this issue: 1. **Use a Geoprocessing Service**: Instead of trying to publish the geoprocessing tool with the feature service as input directly, you could create a separate geoprocessing service that takes the feature service as input and then use that geoprocessing service as a tool within the main tool you're trying to publish. 2. **Data Extract**: Depending on the nature of your geoprocessing task, you could use the feature service as a reference but extract the necessary data to a file geodatabase or other supported data source that can be used in the geoprocessing tool. This extracted data could then be included with your geoprocessing tool when you publish it. 3. **Temporary Feature Class**: If possible, you could create a temporary feature class within a supported geodatabase (like a file geodatabase) and populate it with the features from the feature service. This temporary feature class could be used as input for your geoprocessing tool. 4. **Data Replication**: If your workflow requires frequent updates to the feature service, you could consider setting up a data replication process where the feature service's data is periodically copied to a registered data source that is compatible with ArcGIS Server. 5. **Contact Esri Support**: If you're still facing issues, it might be a good idea to reach out to Esri's technical support. They can provide you with more specific guidance and troubleshoot your scenario to find the best solution. Remember that the specifics of your workflow and environment can influence the best approach to take. Choose the option that aligns most closely with your requirements and available resources.
... View more
08-17-2023
08:19 AM
|
0
|
1
|
679
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 06-28-2024 10:29 AM | |
5 | 06-28-2024 06:58 AM | |
1 | 12-16-2022 06:39 AM | |
1 | 09-18-2023 09:57 AM |
Online Status |
Offline
|
Date Last Visited |
Tuesday
|