Self made script does not create unique feature output name in modal builder

Discussion created by bliki on Aug 23, 2012
Dear all,

I am a developer but new in modal builder. I made my own python script and added this inside a toolbox. When I used that same script inside a model several times I received the error 'Duplicated dataset name for several variables...' I checked "intermediat" and "managed" but still receive the same error. Do I need to write a script inside the validation tab of my model? And how should that look like if I want to use the scratch workspace when a user has not defined any output..

Or am I doing something else wrong that creates this wrong behavior..