Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Make Query Table - ERROR 000152: Invalid input data

$
0
0
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:

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, "", "")

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

Viewing all articles
Browse latest Browse all 2485

Trending Articles