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

TableToTable_conversion syntax on select fields using python

$
0
0
I want to copy a geodatabase table (Test) to a dbf table (Test.dbf) but am struggling with the field mapping. I have about ten fields but only want to export the City and Zip fields into the new Test.dbf file. I can get it to write all the fields to the new dbf file but am struggling with exporting just two. Help seemed to indicate this was possible but provided no examples.

Here is what I have:

Code:

arcpy.TableToTable_conversion("Test","C:\\TestData","Test.dbf",,(["City"],["Zip"]))
What am I doing wrong????????

Viewing all articles
Browse latest Browse all 2485

Trending Articles