Select to view content in your preferred language

Arcade Statement for Symbology not "sticking" in New Map Viewer

2181
12
02-06-2023 09:11 AM
Labels (3)
LeahClark
Occasional Contributor

I am attempting to use Arcade to symbolize my data on a Feature Layer in the New Map Viewer. The Arcade statement appears to be working correctly, and I see the correct output symbolized when it is applied. However, once it is saved and the page is refreshed, the data is no longer symbolized and falls into the 'Other' category. If I try to move it up from the 'Other' category to symbolize and save again, I see the same behavior on refreshing the page. 

Here is my arcade statement:

 

if ($feature.STATUS == 'Temporary Removal') {
     return "Temporary Removal" }
else if ($feature.STATUS == 'Active' && $feature.DaysSinceInspection == '< 60 days') {
     return "< 60 days" }
else if ($feature.STATUS == 'Active' && $feature.DaysSinceInspection == '60-90 days') {
     return "60-90 days" }
else if ($feature.STATUS == 'Active' && $feature.DaysSinceInspection == '> 90 days') {
     return "> 90 days" }
else {
     return "None of these conditions" }

 

 

After the Arcade statement is applied to the symbology, it automatically returns all of the records under this value (which is accurate to what I am expecting to see):

LeahChrisman_0-1675702838995.png

 

I save the map from the left side panel in the New Map Viewer (I have also tried doing this exact same thing under the visualization tab in the Feature Layer item details, which warrant the same results):

LeahChrisman_1-1675702965259.png

 

Then when I go to refresh the map, it is blank and the symbology has disappeared. Upon inspecting the symbology I see that the original value has 0 records and the same value exists under the 'Other' category now:

LeahChrisman_2-1675703136954.png

 

I moved the symbology up out of the other category, and the points were added to the map:

LeahChrisman_3-1675703256728.png

 

I save again, reload the map, and again it is blank. Inspecting the symbology shows the same issue has happened again:

LeahChrisman_4-1675703343494.png

 

Has anyone else encountered a similar issue? Is there a problem with my arcade statement or my method of symbolizing that might be causing this? Thanks!

12 Replies
LeahClark
Occasional Contributor
0 Kudos
RussRoberts
Esri Notable Contributor

Thanks this is a known issue and we are working on a fix. The angle bracket is getting sanitized out when the map is saved which causes the issue you are seeing.

VanessaSimps
Frequent Contributor

Is there anyway to +1 this so it gets worked on sooner? thanks!

RussRoberts
Esri Notable Contributor

hoping to get this in for the upcoming release which we are aiming for end of this month 🤞

RussRoberts
Esri Notable Contributor

this one is looking fixed and should be out with the release in the coming weeks.

VanessaSimps
Frequent Contributor

Do you know if the release will also take care of the hyperlinks not sticking in the pop-ups when using the new map viewer? I know this is a different topic, but it is similarly frustrating!

thanks!

0 Kudos
RussRoberts
Esri Notable Contributor

We do have a fix where certain hyperlinks would get stripped out. This will be going out in the same release.

FrePel
by
Emerging Contributor

Hi Russ,

Is this issue solved by now?

I have a similar problem, this is how my symbology is set up:

ArcGIS Pro

FredrikPellbrink1_0-1688488654041.png
Expression:

FredrikPellbrink1_1-1688488849711.png
Map Viewer:

FredrikPellbrink1_2-1688488908395.png

Cheers

 




0 Kudos
RussRoberts
Esri Notable Contributor

The fix mentioned above was released.  Will probably need to checkout the web map / layer to see what is happening.

0 Kudos