AnsweredAssumed Answered

Python script parameters for Integer not working

Question asked by jbridwell_Dewberry on Sep 5, 2018
Latest reply on Sep 5, 2018 by jbridwell_Dewberry

 am using a Python library called arcpy_metadata that uses 2 datatype called max_scale and min_scale that take integers:enter image description here

My code for that is just:

import arcpy, arcpy_metadata as md....min_scale = arcpy.GetParameterAsText(5)max_scale = arcpy.GetParameterAsText(6)....metadata = md.MetadataEditor(file)...metadata. min_scale = min_scale metadata.max_scale = max_scale

I am trying to turn this into a Python script in ArcMap toolbox. An example input for the max and min scale would 5000 and 150000000. Since there is no integer type and I don't really need decimals, I just entered double when configuring the parameters for the tool. I also set it as ``optional`.enter image description here

When I run the tool however, I keep getting the following error. What am I doing wrong here?

RuntimeWarning: Input value must be of type Integer