I am trying to use the Make Query Table to join two tables in a one to many situation.
I don't want to link the entire script because it is huge. Here is the piece of code within the larger script:
Some info about the script:
Everything is taking place in a file geodatabase.
wellresult is a point featureclass
westbays is a table
Each point has a STAID1_T but there are multiple STAID4 that relate to one STAID1_T
The output should be sqltable.
The error:
ERROR 000152: Invalid input data
I don't want to link the entire script because it is huge. Here is the piece of code within the larger script:
Code:
sqltable = "sqltable_" + InfoRequestNum
inList = ["wellresult","westbays"]
wellsList = ["wellresult.STAID1_T","wellresult.STAID2_T","westbays.STAID4"]
arcpy.MakeQueryTable_management(inList, sqltable, "USE_KEY_FIELDS", wellsList, "", "")
Everything is taking place in a file geodatabase.
wellresult is a point featureclass
westbays is a table
Each point has a STAID1_T but there are multiple STAID4 that relate to one STAID1_T
The output should be sqltable.
The error:
ERROR 000152: Invalid input data