TransWikia.com

Simple join not working

Geographic Information Systems Asked on April 14, 2021

I am joining a large excel spreadsheet to a feature class. Both have a little over 8,000 records. I have gotten this particular join to work before, unfortunately, I had to redo it. This time I cannot get it to join at all. Both of the data types for the table and the attribute table for the particular field the join is based on are the same type. I have tried remaking the spreadsheet. I have used a different mxds with copies of the feature class uncorrupted from this prior to the join not working. I have tried everything I can think of, checking for any reason it may not be working. I have now tried it multiple times and it simply won’t do what it has already done before. Usually, I have no trouble at all with joins.

Does anyone have any insight why I am having this trouble?

6 Answers

Try saving the excel spreadsheet as a CSV, then opening it in ArcMap and exporting it to a DBF. Then you should be able to perform joins and field calculations. Also, check the length of your fields in the spreadsheet- they cannot be too long.

Answered by forrestchev on April 14, 2021

In case anyone stumbles on this, here's my experience with a similar problem. Short answer: the problem was with my shapefile and not my table. Using an earlier version of the shapefile cleared up the problem.

I was doing everything right and getting no matches in a table join. I reformatted my table 10 different ways and nothing worked. Then I tried to join a dummy table - 10 rows and 2 fields that I knew should match. I still got not matches. This made me think that the problem was with my shapefile and not the table. I tried an earlier version of the shapefile with the same table and it worked as expected. Somehow I corrupted the shapefile. I have no idea how, but using an earlier version fixed it.

Answered by David Grover on April 14, 2021

If on the Join Data window (after right-clicking feature > selecting Join) the drop down box for "2. Choose the table to join..." does not show the spreadsheet you have added then my guess is you have more than one dataframe and you have added the spreadsheet to the wrong frame. Therefore, you are not seeing the spreadsheet show up in the Join Data drop down.

Answered by Marco on April 14, 2021

Four things need to be in place for a join to be successful.

  1. The fields your using to join, both have to be the same format, i.e. string or number. The field names don't matter but the format does.
  2. The data should be in the same case if string, i.e. Upper, Lower, or Proper. Because Name, NAME, and name are not the same in a join.
  3. Leading and trailing spaces, very easy to add by mistake, use trim to remove them.
  4. Make sure the join field is not populated by a excel formula, it needs real vlaues.

Most of the time that works, if all else fails try the CSV route and this will rule out any XLS, XLSX issues.

Answered by Bill Chappell on April 14, 2021

I had the same issue, the formatting fixed my issue like a charm! Although ArcMap layer has a column with all numbers it was defined as a 'String' so I had to change my Excel file columns from the 'number' format to 'text' and the join worked. Many thanks Bill Chappel, above.

Answered by Daniel B. on April 14, 2021

This happened to me when I changed the name of the shapefile in the Table of Contents. Removing the file and then adding back with the original name fixed the problem.

Answered by acoving on April 14, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP