Select to view content in your preferred language

Adding Null value symbology?

280
4
09-19-2024 08:06 AM
AndreasB
Emerging Contributor

Hi, 

I have a symbology which is set through two attributes using unique values.

For example the values would be
800,100
801,100

in my database there is a combination of this two fields with a <Null> value 
For example: 800; <Null> and this is picked up in the symbology when I do, add all values 

Now I also want to add 801; <Null> to this symbology posibilities, now this combination is not present yet in the attribute table but could be in the future.

Yet when I try to do this via the "add values" option in the symbology pane I always get an error:

AndreasB_0-1726758278010.png

I tried several different options of null, " ", , Null, <Null> but nothing works
The field from the <Null> is a numeric long integer field. How can I add this to the list??



4 Replies
Ed_
by MVP Regular Contributor
MVP Regular Contributor
  • Maybe change the Null column to text then
  • right click on the Value (data type text) column and open the "Calculate Field" tool
  • select Arcade or Python whatever works for you 
  • Ed__0-1726760174497.png

     

  • apply the symbology again
  • For testing purposes I created a dummy table where Value1 is long and Value4 is text so I manually typed in <Null>
  • Ed__1-1726760426386.png

     

     

 

Question | Analyze | Visualize
0 Kudos
DavidSolari
Frequent Contributor

Make a copy of the feature class, ensure it has the same symbology as the source layer, add records which contain the values you want to symbolize, add those options to the unique values, configure the symbols, save this to a layer file, apply this layer file to the source layer, delete the copy. Boom, you're ready for future data without tampering with the production features!

0 Kudos
clt_cabq
Frequent Contributor

Does using the term Nothing instead of Null work? In calculations where you want to make a field's value  null you use an expression like  'FieldName = Nothing' so this makes me wonder if that will work here. 

0 Kudos
AndreasB
Emerging Contributor

Nothing didn't work unfortunatly.

I'm currently working with map services that are read only so I can't temper with the data. 

I mainly to know why it does get taken into account when it's in the attribute table but when the combination is not and you want to add it you get a warning that this value is not allowed.


0 Kudos