turnerkyle

order of ops-Append,next,Tabletogeodatabase=N: TabletoGeodatabase,next, Append=y ??

Discussion created by turnerkyle on May 9, 2012
Latest reply on May 14, 2012 by mzcoyle
I have a situation that bewilders me.

Here is an excerpt of the script in question:
...
for ds in DSs:
    FCs = gp.ListFeatureClasses("","",ds)
    for fc in FCs:
        gp.TableToGeodatabase(fc, outputgdb)
        gp.Append_Management(fc, outputgdbFCpath, "NO_TEST")

This works.

...
for ds in DSs:
    FCs = gp.ListFeatureClasses("","",ds)
    for fc in FCs:
        gp.Append_Management(fc, outputgdbFCpath, "NO_TEST")
        gp.TableToGeodatabase(fc, outputgdb)


This doesn't.

It seems that the order of the two commands matters. Apparently (actually in truth), I don't get the in-depth details of what's happening and why it works one way but not the other.

Thanks

Outcomes