Invalid Drop Items in Script Tool

6181
5
08-03-2011 09:09 AM
BenjaminZank1
New Contributor III
I have created a geoprocessing script tool that accepts a feature class and folder as inputs. When I add the tool ArcToolbox in ArcMap and try and drag a feature class from the table of contents I get an "Invalid drop item" pop-up with the message, one or more dropped items were invalid and will not be added to the control."
0 Kudos
5 Replies
RolandSchwietz
New Contributor
I'm having same issue.  Any solutions?
0 Kudos
SergiosKolios
New Contributor
Dear all,

I am having the exact same problem. Any of you has already found the solution?

Thank you in advance
Sergios
0 Kudos
RolandSchwietz
New Contributor
For me the solution was to change the Data Type in the Parameters of the script to "Feature Layer".

In ArcToolbox, Right click on the model or script, choose Properties, click on the Parameters tab, and then for the affected parameter, set the Data Type to 'Feature Layer'.
0 Kudos
SergiosKolios
New Contributor
Hi Roland,

Thank you very much for the swift reply! 🙂
Indeed your solution worked for my case as well.

Best regards
Sergios
0 Kudos
ShitijMehta
Esri Regular Contributor
If you want to run the tool on feature classes and stand alone tables try to use the data type - Table View.
0 Kudos