Bug
| Bug ID Number | BUG-000123589 |
|---|---|
| Submitted | July 9, 2019 |
| Last Modified | February 7, 2025 |
| Applies to | ArcGIS Pro |
| Version found | 2.4 |
| Operating System | Windows OS |
| Operating System Version | 10.0 64 Bit |
| Version Fixed | 2.4.2 |
| Status | Fixed |
Manually delete the addition line:
arcpy.env.workspace = arcpy.arcpy.env.packageWorkspacepy.env.packageWorkspace.scratchGDB
Publish the following simplified script to ArcGIS Server after registering a folder with server:
import arcpy
arcpy.env.workspace = r'C:\Users\<username>\Documents\ArcGIS\Projects\PythonWorkspace'
scratchWorkspace = arcpy.env.scratchGDB
arcpy.AddMessage(arcpy.env.workspace)
ArcGIS Server changed this to:
import arcpy
arcpy.env.workspace = arcpy.env.packageWorkspace
scratchWorkspace = arcpy.env.scratchGDB
arcpy.AddMessage(arcpy.env.workspace)
This script does run.
Bug ID: BUG-000123589
Software:
Get help from ArcGIS experts
Download the Esri Support App