Select to view content in your preferred language

Script tool error: Parameter is missing or invalid

2653
6
Jump to solution
04-16-2024 09:22 AM
NicoleHuang
Emerging Contributor

I am trying to create a script tool for Contour.  Obviously, the tool has some issues, it gives an error of " Parameter is missing or invalid. 

Can anyone identify any problems in my scripts or parameters or data type? 

Thanks

NicoleHuang_0-1713284429583.png

NicoleHuang_1-1713284452252.png

NicoleHuang_2-1713284475862.png

 

0 Kudos
1 Solution

Accepted Solutions
EdMorris
Esri Contributor

Hello

Further to what has suggested is your output parameter correct? You have that as a "Feature Set" - you might want to set the Output_Feature_Class parameters as a 'Feature Class' data type (unless there is a specific reason you wish to use a Feature Set?) and take on board Dan's suggestion also.

I hope this helps.

many thanks ed

View solution in original post

0 Kudos
6 Replies
DanPatterson
MVP Esteemed Contributor

Is the output going to a file geodatabase? or a folder?  If the latter then you need to add *.shp to the file name


... sort of retired...
0 Kudos
NicoleHuang
Emerging Contributor

Thanks for the response Dan. 

The output is a feature class. I am wanting to put it in a file geodatabase. Should I still change something?

0 Kudos
EdMorris
Esri Contributor

Hello

Further to what has suggested is your output parameter correct? You have that as a "Feature Set" - you might want to set the Output_Feature_Class parameters as a 'Feature Class' data type (unless there is a specific reason you wish to use a Feature Set?) and take on board Dan's suggestion also.

I hope this helps.

many thanks ed

0 Kudos
NicoleHuang
Emerging Contributor

Hi Ed, 

Changing into Feature Class data type has fixed the issue. Thank you for the advice!  

NicoleHuang_0-1713286785199.png

Yeah, I think Dan's suggestion should be good too. 

Thank you both, it's my first post. The fast responses here is amazing! 

0 Kudos
DanPatterson
MVP Esteemed Contributor

Nicole, straighten out the feature class vs feature set thing as Ed pointed out for sure.

You can use an arcpy.AddMessage statement to check the full path and name of the output.  I am not sure what the --embedded-- option is used for


... sort of retired...
NicoleHuang
Emerging Contributor

Hi Dan, 

Yeah feature class works 🙂

I am also not sure what the "embedded" option is used for. It is automatically filled. I can't delete it. Thank you!

0 Kudos