I'm having an issue using an Arcade expression to symbolize my data in an AGOL Web Map. My data consists of a bunch of points which have a date field that shows the last time the point was visited. I'm trying to write an Arcade expression to extract the year out of the date field for symbolization. The expression I'm using seems to work as intended when tested but all of the points show up the same color on the map.
This is an example of an entry in the date field: 5/30/2017, 8:00 PM
Here is my Arcade Expression:
Here is my symbology menu showing that there is a count for each year category. Like I mentioned above, all the points show up the same color in the web map, the red "To Be Inventoried."
I also want to note that I am using a Filter on the data to exclude points that are no longer visited. I'm not an expert on Arcade expressions so if there's a better way I could be achieving my goal, I'm open to suggestions.