So, near as I can tell, the process that creates the variable substitution has a bug. Go back to your original code, and determine what was substituted. Based on what you've written, I'd say you need to replace this: g_ESRI_variable_1 = os.path.join(arcpy.env.packageWorkspace, u'') with this: g_ESRI_variable_1 = os.path.join(arcpy.env.packageWorkspace, u'mySdeFileName.sde') and possibly even this (this was my problem): g_ESRI_variable_1 = os.path.join(arcpy.env.packageWorkspace, u'mySdeFileName.sde//mySdeFeatureClass') HTH, Rick Scott
... View more