I am using ArcGIS Pro 2.4 and have a model that has several steps to automate a process. The model executes as expected with no errors. However, the field calculator tools do not run as expected. The field calculator tool is used to fill in a field called "Layer Name" with a basic string in quotes - like "Tornadoes." It is also used to calculate another field called "Wildfire Hazard" with a custom Python expression to reclassify integers into text.The expressions is:
def Reclass(Mean):
if (Mean < 2):
return "Low"
elif (Mean >= 2 and Mean < 3):
return "Moderate"
elif (Mean >= 3 and Mean < 4):
return "High"
elif (Mean >= 4):
return "Very High"
When I run the field calculator manually with the basic string and the custom expression, it works. However, when it runs in the model it only writes the first letter of the string in both fields. The geodatabase name where the data is stored does not have any spaces or special characters. Does anybody know why the field calculator won't write the entire expression when used in ModelBuilder?