lareromero

arcpy.GetMessages for multiple from two processes.

Discussion created by lareromero on Mar 14, 2014
Latest reply on Mar 14, 2014 by lpinner
Hi I am trying to add a text file that will report any errors and progress of my script.

arcpy.FeatureClassToGeodatabase_conversion(fc, ".gdb")

and

arcpy.FeatureClassToGeodatabase_conversion(savelist, outLocation)

When I run the text file script I only get back messages relating to the last tool run. How can I get the
progress on both of my arcpy.FeatureClassToGeodatabase_conversions?

The text file script I am using is;

txtFile = open(".txt", "w")
txtFile.write (arcpy.GetMessages())
print (arcpy.GetMessages())
txtFile.close()

Any help would be greatly appreciated.

Outcomes