Hi Kevin,
You are right, this is not really a ArcGIS Runtime problem i guess. You mention changing the scratchworkspace to scratchFolder and then recreating the GPK, but actually i didn't create a GPK yet. I'm experiencing this problem when just running the Script from a Toolbox within ArcMap and/or ArcCatalog.
Changing it to scratchFolder doesn't solve the issue.
Executing: Spline
Start Time: Tue Feb 28 11:50:21 2012
Running script Spline...
Traceback (most recent call last):
File "C:\AEDT_Repository\Developers\Foliage\ATMP\INMWeb\MAIN\Toolbox\SplineExampleScript.py", line 22, in <module>
outSpline = Spline(selection0, "inmval", weight="0.1", number_points=24, spline_type="REGULARIZED")
RuntimeError: ERROR 000875: Output raster: c:\windows\system32\%scratchFolder%\Spline_selec3's workspace is an invalid output workspace.
Failed to execute (Spline).
Failed at Tue Feb 28 11:50:22 2012 (Elapsed Time: 1.00 seconds)
Note that i'm still running BETA 2 as i'm waiting for Runtime to hit Pre-release.
Here is the script that i tried:
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# SplineExampleScript.py
# Created on: 2012-02-28 10:11:31.00000
# (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
from arcpy import env
from arcpy.sa import *
# Check out any necessary licenses
arcpy.CheckOutExtension("spatial")
# Local variables:
selection0 = "selection0"
dstfile = "%scratchFolder%\\Spline_selec3"
outSpline = Spline(selection0, "inmval", weight="0.1", number_points=24, spline_type="REGULARIZED")
outSpline.save(dstfile)