Select to view content in your preferred language

Arcade Expression works in Field Maps app but not in Forms Map View

142
4
Friday
KristenKlaphake1
Emerging Contributor

Hi all,

I created an Arcade expression using the Field Maps Designer 2 days ago (10/22/25). The arcade expression creates a unique id based on the initials of the user and getting the latest object id as a starting counter plus 1.  This worked when I tested it in the Field Maps designer map and also in the FieldMaps app. This expression functions in an offline scenario.  

Today I added a new record in the Field Maps designer map and the record did not populate, although the "Create Features" display box shows the value, once I click "Create" no value is transferred to the record.  When I run the same map in FieldMaps the value is populated correctly.

Help, am I crazy?

Here's my code:

if(!isEmpty($feature.WaypointID )){
  return $feature.WaypointID
}
var userInfo = GetUser($layer);
var numberlist = FeatureSetByName($map,"Waypoint")
var topnum = Top(OrderBy(numberlist,'OBJECTID DESC'),1)
var counter = Number(Max(topnum,'OBJECTID'))
var id = counter+1

return Text(left(userInfo.username,2) + "-" + id);

 

 

0 Kudos
4 Replies
peterverwey_ses
Occasional Contributor

EDIT .. re-read your post and the app is working, but the Map Viewer is not. Oops.

Hi Kristen,

What version of the Field Maps app are you using?

I have found that versions below 25.x don't follow all the Field Map Designer's settings.

Pete

0 Kudos
KristenKlaphake1
Emerging Contributor

Hi Pete,

I am using Field Maps version 25.2.7. 

My arcade expression works in the Field Maps app.  

I developed the code in Field Maps designer and it populated the records accurately early last week and now it won't populate the records using the same code.  

Kristen

0 Kudos
DougBrowning
MVP Esteemed Contributor
0 Kudos
KristenKlaphake1
Emerging Contributor

Hi Doug, 

The funny thing about this is that it works in the Field Maps app, but not in Field Maps designer, although I originally developed it in Field Maps designer where it did work for me early last week.

Thanks for you input

Kristen

0 Kudos