Bug
| Bug-ID-Nummer | BUG-000123589 |
|---|---|
| Eingereicht | July 9, 2019 |
| Zuletzt geändert | February 7, 2025 |
| Gilt für | ArcGIS Pro |
| Gefunden in Version | 2.4 |
| Betriebssystem | Windows OS |
| Betriebssystemversion | 10.0 64 Bit |
| Behoben in Version | 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:
Unterstützung durch ArcGIS-Experten anfordern
Esri Support App herunterladen