Select to view content in your preferred language

AGOL JOIN command: do match field data types have to match?

440
2
Jump to solution
04-13-2023 10:17 AM
JayLarsen
Frequent Contributor

I use the JOIN command quite a bit to add data to ZIP layers.  So, I do a JOIN on the ZIP field.  Does JOIN convert types to match?  E.g. if I JOIN on ZIP that is integer and the other layer ZIP is a string (as it should be) will the JOIN work?

I got this question from a colleague and I simply don't know.  I haven't run into it.

The Living Atlas ZIP layer the ZIP filed as a string, and I usually type mine as string when upload data.

Has anybody done this experiment? Is there a known spec on the JOIN command, e.g. would integer = 2 match a float = 2?

I'd love to see a doc or answer to this, just in case...

Thank You.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
David_McRitchie
Esri Contributor

I gave this a quick test and the field types will need to be the same.

If you have a copy of the layer then I would recommend creating a new field with the matching data type, then use the Field Calculator to transfer the values from the old field.

Esri UK -Technical Support Analyst

View solution in original post

2 Replies
David_McRitchie
Esri Contributor

I gave this a quick test and the field types will need to be the same.

If you have a copy of the layer then I would recommend creating a new field with the matching data type, then use the Field Calculator to transfer the values from the old field.

Esri UK -Technical Support Analyst
JayLarsen
Frequent Contributor

Thanks!

I can't believe I was just lucky for all of these years.

0 Kudos