Label expression not working in ArcGIS Pro 2.5.2, but works fine in ArcGIS Pro 2.5.1

2814
5
07-20-2020 11:26 AM
MikeSchiewe
New Contributor II

When trying to perform a simple label expression on a feature service, my colleague and I have different experiences.  I'm using ArcGIS Pro 2.5.1 and my expression labels correctly (Image 1).  My colleague is using ArcGIS Pro 2.5.2 and his expression fails stating 'Invalid Expression.  No features found.' (Image 2)

We've tried both Arcade and Python.

Image 1.  Correct behavior in ArcGIS Pro 2.5.1:

Image 2.  Incorrect behavior in ArcGIS Pro 2.5.2:

Does anyone have any insight on why this may be happening, and even better, ways to solve the issue on 2.5.2?

Thanks!

Mike

Robert White

5 Replies
KoryKramer
Esri Community Moderator

This expression works for me in 2.5.2.

My mocked up blm_acres field is a float and surv_numb is short.

What are your fields' data types?

0 Kudos
MikeSchiewe
New Contributor II

surv_numb = text, 6

blm_acres = double

0 Kudos
KoryKramer
Esri Community Moderator

Mike, I created new fields to mimic your data and don't get an error in 2.5.2

Is there anything else driving the values in those fields?  At this point, it might be best to work with technical support to investigate further.

0 Kudos
HannahAWhite
New Contributor II

I was getting this same error, 'Invalid Expression.  No features found.' Then I checked the SQL tab within the Labeling pane and realized I had an old query still set to filter data. Once I cleared that, the label expression validated and the labels appeared 🙂

Capture.PNG

HannahAWhite_0-1695743419045.png

 

paleothalweg
New Contributor

Had the same problem, and this fixed it, thank you!

0 Kudos