I've been working recently on a custom generalization python script. So it works fine when run directly from a toolbox and providing parameters (screenshot attached).
The problem is that the very same tool with the 'exact' same parameters set causes ERROR 999999 when run from inside Model Builder, whether as a part of larger model separately (screenshot attached).
Do you have any idea what might be the cause?
Thank you in advance,