How do I apply field mapping to multiple shapefiles during import?

430
2
Jump to solution
06-21-2017 01:57 PM
Highlighted
New Contributor II

I am trying to change field name, type, length, and precision during an import of multiple shapefiles, but unlike the "Feature Class to Feature Class" tool, there is no field mapping section for the "Feature Class to Geodatabase (multiple)" tool.

Is there a way to do this using python?

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
New Contributor II

Thank you. While looking at this option, I realized that I could iterate my shapefiles through "Feature Class to Feature Class" in Python, and specify the field mappings there.

View solution in original post

2 Replies
Highlighted
Honored Contributor

Try to run Feature Class to Feature Class in Batch mode. Do the Field Mapping for one row, and Fill to copy the values for other rows.

A quick tour of batch processing—Help | ArcGIS for Desktop 

Highlighted
New Contributor II

Thank you. While looking at this option, I realized that I could iterate my shapefiles through "Feature Class to Feature Class" in Python, and specify the field mappings there.

View solution in original post