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")
else:
schemaCheck = "Pass"
arcpy.AddMessage("Schema is fine")
Attached: Screenshot of resulting geoprocessing window.