Skip to main content

Questions tagged [arcade]

Use for questions about Arcade expression language used across ArcGIS Platform

Filter by
Sorted by
Tagged with
0 votes
1 answer
16 views

Arcade labels not drawing in ArcGIS Online

I have a hosted feature service view that I would like to customize a label expression for. I want to concatenate an abbreviation of one field with another field. I'm doing this in the Visualization ...
Rob Matthewman's user avatar
0 votes
1 answer
45 views

Restricting numeric fields to specific ranges using ArcGIS Pro Attribute Rules (Arcade)

Working in ArcGIS Pro 3.1.2 and trying to use Attribute Rules to restrict the values in a couple numeric fields. The ESRI documentation does not specify how this might be answered, despite my best ...
JAKeeley's user avatar
0 votes
0 answers
36 views

ArcGIS Pro 3.2.1 Attribute Rule error: Return type is not compatible with field type

I have a point layer and a standalone table within a relationship class that both have date fields. I have an Arcade script that is supposed to update the date field within the point layer using the ...
Isaac Bowling's user avatar
0 votes
1 answer
41 views

Return a URL from a Cell in a Field in A Feature Layer as Hyperlinked Text

I have a feature layer in AGOL Map Viewer full of polygons. This feature layer has a field titled 'dotcms_factsheet'. In each cell in this field is a URL. I am trying to write an expression in Popups ...
TheOmoSlide's user avatar
0 votes
2 answers
83 views

How to Activate Hyperlink in Pop-up From Attribute Field

I am building expressions in a pop-up in AGOL Web Map. A specific field in the attribute table I am drawing from has URLs in each cell. When I drop the field name into the pop-up from the Fields List, ...
TheOmoSlide's user avatar
1 vote
1 answer
102 views

Arcade script to return color-coded value from attribute field

I am working in ArcGIS Pro pop-ups Expressions and I have parsed together an Arcade script to search an attribute field in ArcGIS Pro for some words, and then return the words color-coded into the pop-...
TheOmoSlide's user avatar
0 votes
1 answer
25 views

Arcade - problem with rule-based styling for more than one condition

I want to set the Arcade expression in my ArcGIS Online project, which will be based on more than one criterion. I need to include two fields instead of one as I can usually do in ArcGIS Online ...
Geographos's user avatar
  • 4,029
1 vote
1 answer
67 views

Adding Code to Experience Builder Text Widget

I have some Arcade code I wrote (that surprisingly works) and I'd like to insert the code into a Text Widget in Experience Builder (I need to replace the XXX in the image below with the code). The ...
Pop's user avatar
  • 21
-1 votes
1 answer
56 views

Converting XY coordinates into local coordinate system using Arcade

I am currently trying to convert coordinates into a local county coordinate system. The use case is when I have my field workers out collecting, it could auto calculate a field for the geometry.x and ...
camtmiller's user avatar
1 vote
1 answer
62 views

Arcade script to group attribute fields in a PopUp

I have a feature layer of land use zones in AGOL Map Viewer. I want to script the Popups to group by a given header name all the different attribute fields and records that pertain to the selected ...
Pop's user avatar
  • 21
0 votes
1 answer
84 views

ArcGIS Arcade Pop up expression - How to get a list in the pop up to show colours related to symbology

I'm relatively new to ArcGIS Arcade but I've been trying to learn, with lots of help from Esri lessons and articles - also Copilot assists with some scripts. Outside of one of the lessons learning ...
ChrisT671's user avatar
1 vote
0 answers
45 views

Why won't Arcade recognize related table in Field Maps app?

I have a Field Maps application to inventory trees. The application's associated web map has the following features associated with it: Layers trees Tables Maintenance Inspections trees_related I ...
amcameron's user avatar
0 votes
1 answer
87 views

Removing line or row if value is empty or null in Arcade [duplicate]

I am trying to remove lines in a pop-up which have blank values or . Example below: var fieldz = { Category: DomainName($feature, "Category"), Project: $feature.ProjectName, Stat: $feature....
John Driessen's user avatar
1 vote
3 answers
39 views

ArcGIS Arcade Pop-Up Record Concatenate

I have numerous records where FieldName1 = categories, and FieldName2 = unique types. I am trying to concatenate FieldName2 by FieldName1. Is this possible?
Kate D's user avatar
  • 13
0 votes
0 answers
54 views

Combining two Arcade expressions to calculate field and update parent class

I currently have two Arcade expressions as attribute rules that I need to combine into one because they evaluate in the wrong order, but I can't figure out how to combine them. I need GPM calculated ...
Mikhayla's user avatar
0 votes
0 answers
50 views

How to retain or pull data from last point in Field Maps survey to autofill field in next point?

I've created a Field Maps form that stores points on a layer. I've been autofilling parcel info for each of these points by pulling attributes from a polygon layer of the parcel map for the county. ...
SC5 Music's user avatar
0 votes
1 answer
87 views

ArcGIS Arcade return x coordinate of web map feature from EPSG: 3857 to EPSG: 2227 [closed]

I'm using smart forms in ArcGIS Field Maps and I need to calculate the x coordinate in the feature layer's original coordinate system (California state plane III, EPSG:2227) when a new feature is ...
geoJshaun's user avatar
  • 1,335
0 votes
0 answers
46 views

Troubleshoot Attribute Rule to Update Parent Table

I am using ArcGIS Pro 3.2.1 and working with an Arcade expression to update a parent layer when new inspections are performed in the related table. I have tried a 1:M relationship class with GlobalIDs,...
Mikhayla's user avatar
0 votes
1 answer
144 views

Calculate date difference between current date and previous date using Arcade with ArcGIS Pro

I can't find the error in my code. I am trying to calculate the difference between the current date and a previous inspection date. I want the difference to be calculated in days. I am using ArcGIS ...
user237830's user avatar
1 vote
1 answer
80 views

Attribute Rules for ArcGIS Pro to transfer attribute from Line to Point

I want to use attribute rules to transfer an attribute from lines to points based on which end of the line a point intersects. I have a set of Flow Meter Points that intersect Pipe Lines. They are ...
Zipper1365's user avatar
1 vote
0 answers
40 views

My ArcGIS Pro attribute rule to update facilityids sequentially is not working

I have a featureclass with the field "FACILITYID". There are values in it that go up to P-72340. I am trying to create an attribute rule so that each time a feature is inserted, the ...
Calvin's user avatar
  • 11
0 votes
0 answers
45 views

Hyperlinking Google Map directions in AGOL arcade popup without losing DDMMSS N|S formatting

How do I hyperlink Google Map directions in AGOL arcade popup without losing DDMMSS N|S formatting? The link works correctly in ArcGIS Pro and goes to the centroid of the feature polygon. Example: ...
Irina Beal's user avatar
0 votes
0 answers
87 views

Arcade Expression for Feature Selection

I'm using Esri FieldMaps app to deploy a survey where staff will use a smart form in the app to enter info about a feature at the site. Much of the form is known data derived from a layer in the map, ...
Dave's user avatar
  • 553
0 votes
0 answers
25 views

Rebuilding labeling from ArcGIS Pro to ArcGIS Online

I have multiple layers in an ArcGIS Pro project with vbs scripted labeling. I have created a Web Map on ArcGIS Online that uses these feature classes. I wish to rebuild the labeling in ArcGIS Online ...
Bear's user avatar
  • 23
0 votes
1 answer
61 views

Attribute Rules for M:N Relationship Class and Updating Relationship Class Intermediary Table

Working on an attribute rule that populates a M:N relationship table between two polygon layers in cases where they intersect. In this case the intermediary relationship table is RelationshipTable_AB ...
Boomer1187's user avatar
2 votes
1 answer
196 views

Create label expression that sums an attribute for features in a group?

I have pipes that have been assigned to a group (1, 2, 3, 4, etc). Each pipe also has a "Length" attribute. I am working in Pro 3.2.0 For each pipe group, I want to have a single label that ...
Zipper1365's user avatar
0 votes
0 answers
151 views

How would I auto fill a field in a point feature based off of a polygon that it is within?

I am creating a field map for data collection in which we have a polygon layer and a point layer. we will be creating points and every point will be within one of these polygons, I was wondering if it ...
Benjamin LaBorde's user avatar
0 votes
3 answers
45 views

ArcGIS Arcade code not giving desired outcome

I have the following code below. I'm trying to search for a text inside a string from a date field and populate it with the associated month with ArcGIS Arcade. So far I just keep getting the default ...
user avatar
0 votes
0 answers
49 views

Attribute rule to union buffers

I've successfully created an attribute rule to add a new buffer to a polygon feature class (FC) when a new point is added to a point FC. However, now I need to dissolve all buffers in the polygon FC (...
Matt Warren's user avatar
0 votes
0 answers
115 views

Populating field from related records on AGOL

I have a layer I would like to visualize based on related records. I understand this cannot be done directly in ArcGIS Online based on this article: Visualize data from related records using Arcade. I ...
RossV's user avatar
  • 338
1 vote
0 answers
114 views

Arcade Expression for radio button in ArcGIS Field Maps

I'm trying to set a field in a pop up that appears when a feature is clicked. The attributes show up in the pop up and then one must hit the edit icon which brings the form view for the feature up on ...
geoJshaun's user avatar
  • 1,335
1 vote
0 answers
68 views

Using ArcGIS Pro arcade labeling profile, how to check existence of a field

I am trying to consolidate dozens of arcade label expressions into a single expression that is sophisticated enough to handle two different possible data sources (These expressions are being written ...
cando42's user avatar
  • 41
0 votes
0 answers
82 views

Arcade Dashboard List Formatting - Rename Fields and Sum Stats

I have a dataset from a Survey123 and my goal is to add a list element in the dashboard that shows the top 3 students based on the number of birds they identified by sight. I imagine I will use an IF/...
Caroline's user avatar
0 votes
0 answers
50 views

Summarize Two Overlapping Layers Within a Third Layer

My project has 3 relevant layers, 2 with data I wish to extract and a 3rd representing the geography I need a summary of. Landuse, Field "Use" (values x y z), Soils, Field "Soil Type&...
Sean Kennedy's user avatar
0 votes
0 answers
43 views

ArcGIS Arcade for WebMap Symbology Issue

I'm working on some custom symbology logic for a WebMap and no matter how I form the Arcade I can't return the appropriate symbol classes, just a block of all features classified as "Other". ...
Josh M's user avatar
  • 1
1 vote
2 answers
1k views

ESRI Dashboard: Arcade in List (advanced formatting): filter unique values

I'm not sure if this is the best place to ask questions about Esri's Dashboard since it's not GIS per se - but it's not getting much traction on Esri's community page: https://community.esri.com/t5/...
YGS's user avatar
  • 195
0 votes
1 answer
62 views

Manual classes symbol ArcGis Pro

I am trying to create 2 classes of symbol based on attributes. I refer to this doc: https://pro.arcgis.com/fr/pro-app/latest/help/mapping/layer-properties/set-custom-expressions-for-symbology.htm ...
Arthur's user avatar
  • 893
0 votes
0 answers
39 views

Inspection date conditional formatting symbology

I am trying to set symbology in ArcGIS Online based on Service Status, In or Out, and Inspection Date, this will either be NULL or have a date. If a hydrant is IN or Out of service but has not been ...
user226542's user avatar
2 votes
1 answer
531 views

ArcGIS Online Dashboard change date format in advanced formatting

I have set up an ArcGIS Online Dashboard using a custom data expression that uses variables for dates as follow: var start = ToLocal(Date(1970, 0, 01, 0, 0, 0, 0)); var dtpoletbl = DateDiff(t....
NorthSon's user avatar
  • 339
0 votes
2 answers
1k views

ArcGIS Online Dashboard join layers through Arcade scripting

I'm trying to build a script to create a joined layer based on a feature layer and a table my client gave me with only data entry permissions. The structure of the two layers is something as following ...
NorthSon's user avatar
  • 339
0 votes
1 answer
317 views

How to use DateDiff function with custom dates in Dashboard

I'm building an indicator in dashboard. What I would like to show is the current velocity & the velocity required to finish by year end in 'mi'. I've got the current velocity working, sort of. In ...
Alex Page's user avatar
0 votes
2 answers
40 views

How can I modify style options in MapViewer to only display records that are less than 1 year old?

What I have: A hosted joined view layer with a Inspection Date field ('insdate') and an Operable field ('h_operable'). The view is defined such that it only holds the most recent record for each ...
Austin Averill's user avatar
0 votes
2 answers
35 views

Categorise by week number of each year in ArcGIS Pro

I am new to ArcGIS Pro, and I would like to have a categorised symbology based on the year and week number of the year in question. For ex: 2022: Week 1 2022: Week 2 2022: Week 3 ... 2023: Week 1 ... ...
Inès Moreno's user avatar
1 vote
1 answer
52 views

Abbreviated label created in ArcGIS Pro not working in ArcGIS Online

I've created a label dictionary to shorten a status type label from displaying "Access" to "A" or "No Access" to "N". This works perfectly in ArcGIS Pro, but ...
Alex Page's user avatar
0 votes
0 answers
52 views

ArcGIS Online - Linking Symbology between layers

I have two sets of data presented on a web map using ArcGIS Online (Classic). These data are points and lines. The points represent a building, and the lines feed out from the points representing a ...
Keagan Allan's user avatar
  • 3,776
2 votes
1 answer
255 views

Arcade expression for FIND using multiple values - getting error for wrong number of arguments

This is a selection of my data. CLVM71-01, CLVM71-02, CLVM72-01, CLVM72-02, CLVX71-01, CLVX72-01, CLVX73-01, CLVX73-02, CLVN73-01, CLVN72-01, CLVA71-01, CLVA72-01, CLVA73-01, CLVA74-01, CLVM74-01, ...
Invercargill's user avatar
1 vote
3 answers
514 views

ArcGIS Pro Arcade Expression for various characters in the Asset Id field

I'm looking for an arcade expression for arcgis pro symbology. Involves the Asset ID field to symbolise based on text within an asset ID. Say if the asset ID contains C2 then blue (for instance), or ...
Invercargill's user avatar
1 vote
0 answers
263 views

Getting count of intersect in Arcade attribute rule in enterprise geodatabase

Having two feature classes in an enterprise geodatabase like - EGDB.North.Parcels - EGDB.North.ProjectsInvest I am trying to get the total count of Intersection between EGDB.North.Projects in ...
Suffii's user avatar
  • 588
1 vote
2 answers
155 views

Use Trigger field with a calculation attribute rule to deleniate between auto calculated data and manually entered data

I have a calculation attribute rule in Arcade that is meant to have the following fields work in conjunction with each other: Name: eight digit unique ID AMPageName: 5 digit page name that consists ...
JBizz49's user avatar
  • 17
0 votes
1 answer
612 views

Dynamically display total length of polyline feature class in miles using Arcade expression?

I am using ArcGIS Pro 3.0. I would like to use Insert Table Attribute on a layout to display the total length (in miles) of a polyline feature class. I want this to be dynamic -- not a field calculate ...
Joseph's user avatar
  • 1