Select to view content in your preferred language

Update Feature Class Attributes Automatically

3067
10
10-25-2012 10:05 AM
ModernElectric
Frequent Contributor
Greetings-
    I am working on a work-flow process that will automatically update the attributes of a specific feature class from a scheduled python script that will run overnight. Here is what I am trying to accomplish:

Feature Class: Service Locations (Electric Meter Locations with account, meter and location data stored in our CIS system.)
    I currently have a python script the pulled the data from our Oracle System and produces it into a Geodatabase table that sits in the same geodatabase as the Service Location feature class. What I need to do is to take the individual fields from the table and update the fields in the feature class.

This is what I have done:
    I made a data model through model builder to 1) Make a Feature Layer 2) Add Join 3) Calculate Field (Update the feature class field with the same field from the data table.

Problem is - when I run the data model or the script - it takes a LONG time. The one script I build and tested only have 7 fields (so 7 Calculate Field processes) and it took about 4 hours to run.

Is there an easier way to do this?

Thanks in advanced
Tags (2)
0 Kudos
10 Replies
ModernElectric
Frequent Contributor
Negative Jake - I went through and copied the geodatabase and .MXD and put it onto my hard drive and rebuilt the data model in model builder and it is taking just as long. I am using the "Calculate Field" tool and saying I want this field from the Feature Layer to update/replace from the field in the table. Is there a different tool I can use?
0 Kudos