arcpy tool on 10.2 parameter error

576
1
Jump to solution
12-09-2016 06:33 AM
JonGarrido
New Contributor III

Hello,

I have created an arcpy tool in 10.3 ArcGis version it works perfectly.

When trying to open the tool a 10.2  version it throws an error like this:

AttributeError: 'Parameter' object has no attribute 'filters'

The error is in the last line of the forwarding code

param1 = arcpy.Parameter(
displayName='Selected vectors',
name='vetorlist',
datatype='GPValueTable',
parameterType='Required',
direction='Input')

param1.columns = [['GPString','Vector']]
param1.filters[0].type = 'ValueList'

May be this kind of parameter it's only available from 10.3 on....?

Thanks in advance..!!

0 Kudos
1 Solution

Accepted Solutions
JoshuaBixby
MVP Esteemed Contributor

As the error message indicates, arcpy.parameter.filters doesn't exist in ArcGIS 10.2.x, compare the Parameter (ArcPy) 10.2 versus Parameter 10.3.

View solution in original post

1 Reply
JoshuaBixby
MVP Esteemed Contributor

As the error message indicates, arcpy.parameter.filters doesn't exist in ArcGIS 10.2.x, compare the Parameter (ArcPy) 10.2 versus Parameter 10.3.