Table-Join not holding values

745
2
Jump to solution
07-23-2019 12:00 PM
AlexandreHughes1
New Contributor II

Hello community,

This is the first time I have had a problem using a table-join between two sets of data whereby the resulting join lacks the values in each row from one of the tables despite loading in the columns properly.

I have two files, LineNetwork_Whole and modechoice_network as shown below.

LineNetwork_Whole

modechoice_network

Shown here, they both have the linkId field. The LineNetwork_Whole file is a line feature class that I want to hold the mode-split values from the modechoice_network.csv table.

Table Join

This was how I setup the table join. However, the resulting attribute table shows the following :

This image was the exported line feature class after the table join, though, the table join itself was the same. The LinkId matches and if referenced against the modechoice_network.csv it shows that LinkId-2 should have a total of 2 cars. Instead all values that should hold some number of vehicle choices are shown as zero. I made sure to format the cells in Excel as number and there are no known special characters in the data set.

I really am at a loss!

Any help would be greatly appreciated.

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MichaelMorgan4
Occasional Contributor

CSV files are notorious for formatting difficulties, regardless of what you tell Excel to do. Your best bet is probably to import the .csv file into the same database that your line file is, making good and sure that fields in the .csv file are mapped as integer types (because they might all come in as text strings), and then join it to the linkNetwork file.

View solution in original post

0 Kudos
2 Replies
MichaelMorgan4
Occasional Contributor

CSV files are notorious for formatting difficulties, regardless of what you tell Excel to do. Your best bet is probably to import the .csv file into the same database that your line file is, making good and sure that fields in the .csv file are mapped as integer types (because they might all come in as text strings), and then join it to the linkNetwork file.

0 Kudos
AlexandreHughes1
New Contributor II

That worked! It was formatted correctly but importing the file into my geodatabase seems to have solved my issue! Thanks so much!

0 Kudos