boundary clean operation disrupts and moves raster cell values

Discussion created by maarten.hofman on Feb 7, 2012
I've produced a Python script which works fine in PythonWin, but when run from the toolbox I created for it, a BoundaryClean operation in the beginning of the script disrupts the raster map at seemingly random places and moves the disrupted parts northwards, outside the extent set using arcpy.env module. The resulting map shows about five break lines. It does this consistently in the same manner every time i run it from the toolbox. When run from Python the problem doesn't occur...
Anyone ran into similar problems?
What might be wrong? And what can I do to fix it?