AnsweredAssumed Answered

AddMessage not being added to ArcGIS geoprocessing window

Question asked by abartshire_ucce on Jun 23, 2017
Latest reply on Jun 26, 2017 by rastrauch

I have a few python scripts that are being called from modelbuilder and for months the AddMessage() function was working properly, displaying results in the ArcGIS geoprocessing window as the scripts ran. All of a sudden the geoprocessing window just stopped displaying those messages but continued to run the scripts correctly. I don't think the issue is with the python code but maybe some setting within ArcGIS for the geoprocessing window?


This is just a snippet of the python script:


precheck1 = arcpy.TestSchemaLock(tblQAQC1)
precheck2 = arcpy.TestSchemaLock(tblNew)
precheck3 = arcpy.arcpy.Exists(tblAGOL)

if precheck1 == False:
    schemaCheck = "Fail"
    arcpy.AddMessage("QAQC1 layer locked")

elif precheck2 == False:
    schemaCheck = "Fail"
    arcpy.AddMessage("Raw layer locked")

elif precheck3 == False:
    schemaCheck = "Fail"
    arcpy.AddMessage("AGOL DB not found")

    schemaCheck = "Pass"
    arcpy.AddMessage("Schema is fine")



Attached: Screenshot of resulting geoprocessing window.