AnsweredAssumed Answered

How to store first iteration of loop in a defined location and the rest of the iterations to append to first iteration results?

Question asked by vshah6 on May 10, 2018
Latest reply on May 16, 2018 by vshah6



I am working with a for loop where a summary statistics is created. I am able to store the output to a custom file gdb using TableToTable conversion. However, I'm not able to append data to it on the following iterations. How can I go about this?


if hubDict[0]:
    arcpy.TableToTable_conversion(in_rows, out_path, out_name)
    arcpy.Append_management(inputs, target, "NO_TEST")


hubDict is a dictionary i have created earlier on. in_rows, out_path, out_name, inputs, target are all variables that are defined to the correct files and output locations.