|
POST
|
Hey @CodyPatterson Restarting did not work in my case. However, I contacted the Esri support, they did reset the licenses from their end. Thanks
... View more
04-30-2025
05:19 AM
|
1
|
0
|
471
|
|
POST
|
Hello There, I completed the deauthorize steps on ArcGIS License Manager 2020.0, saved the file, and uploaded to secure site operation on Esri. It fails with the below message. Unfortunately your request could not be completed. Please try again. Any suggestions please Environment: ArcGIS Desktop 10.8.1 Licenses, ArcGIS License Manager 2020.0, Windows OS
... View more
04-28-2025
04:50 AM
|
0
|
2
|
532
|
|
POST
|
This is requested by the Application Developer, and it seems, there is a requirement from the Users side. Thanks @berniejconnors for your input
... View more
02-04-2025
04:46 AM
|
0
|
1
|
799
|
|
POST
|
Hello There, We currently maintain two different database instances storing the same data for two different coordinate systems, lets say Coord1 and Coord2. Is there a way to have have only one instance with either Coord1 or Coord2 and change the coordinate system on ArcGIS Server level or Web Application level for the users instead of having two databases and two different Map/Feature services published for Coord1 and Coord2. Thanks in Advance Environment: ArcGIS Enterprise Federated 11.3, Oracle 19c
... View more
02-02-2025
03:22 AM
|
0
|
3
|
867
|
|
POST
|
I apologize for delay @MarceloMarques The field is not empty in the table. The error is stating that the below value is not a valid date
... View more
01-08-2025
02:37 AM
|
0
|
1
|
1136
|
|
POST
|
Hello There, I have encountered an error popup, while trying to look into properties of a geodatabase as an SDE user. Unable to get geodatabase version history list. String '12/20/2024 02:30:15' was not recognized as a valid DateTime. (attached snapshot) Environment: ArcGIS Pro 3.2, Oracle 19c, ArcGIS Enterprise 11.3
... View more
12-22-2024
02:31 AM
|
0
|
3
|
1272
|
|
POST
|
Sometimes this error can occur with a normal feature class in a geodatabase as well, and it is a Bug https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/160001-170000/tool-errors-and-warnings-160751-160775-160766.htm
... View more
11-07-2024
03:05 AM
|
0
|
0
|
1553
|
|
POST
|
Hi, Environment: ArcGIS Pro 3.2.1, ArcGIS Enterprise 11.1 I published a geoprocessing tool which converts AutoCAD .dwg file to .geojson format. When i try to run it from WebApp Builder or Portal Map viewer classic, It throughs below error. It worked fine on ArcGIS Pro desktop, with no issues " Traceback (most recent call last): File "", line 99, in execute File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcPy\arcpy\conversion.py", line 2169, in CADToGeodatabase raise e File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcPy\arcpy\conversion.py", line 2166, in CADToGeodatabase retval = convertArcObjectToPythonObject(gp.CADToGeodatabase_conversion(*gp_fixargs((input_cad_datasets, out_gdb_path, out_dataset_name, reference_scale, spatial_reference), True))) File "C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in return lambda *args: val(*gp_fixargs(args, True)) arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Output Geodatabase: Dataset C:\Users\PRODGI~1\AppData\Local\Temp\tmp2vw9kb42 \\networkfiles\location\arcgisserver\directories\arcgissystem\arcgisinput\others\Tool1.GPServer\extracted\p30\..\cd\shapefile_datatemp.gdb does not exist or is not supported Failed to execute (CADToGeodatabase). Failed to execute (DWGtoGEOJSON_Stage1). Failed. " # -*- coding: utf-8 -*-
import arcpy
import os
import tempfile
import os.path
import shutil
class Toolbox:
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = "toolbox"
self.alias = "toolbox"
# List of tool classes associated with this toolbox
self.tools = [Tool]
class Tool:
def __init__(self):
"""Define the tool (tool name is the name of the class)."""
self.label = "DWGtoGEOJSON_Stage1"
self.description = ""
def getParameterInfo(self):
"""Define the tool parameters."""
params = [
arcpy.Parameter(displayName="Input_CAD_File",
name="in_cad",
datatype="DEFile",
parameterType="Required",
direction="Input"),
arcpy.Parameter(displayName="Output GEOJSON File",
name="out_geojson",
datatype="DEFile",
parameterType="Required",
direction="Output")
]
return params
def isLicensed(self):
"""Set whether the tool is licensed to execute."""
return True
def updateParameters(self, parameters):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parameter
has been changed."""
return
def updateMessages(self, parameters):
"""Modify the messages created by internal validation for each tool
parameter. This method is called after internal validation."""
return
def execute(self, parameters, messages):
"""The source code of the tool."""
in_cad = parameters[0].valueAsText
out_geojson = parameters[1].valueAsText
temp_dir = tempfile.mkdtemp()
temp_gdb = "temp.gdb"
arcpy.CreateFileGDB_management(temp_dir, temp_gdb)
arcpy.env.workspace = os.path.join(temp_dir, temp_gdb)
# Execute Create FileGDB, temp
arcpy.CreateFileGDB_management(temp_dir, temp_gdb)
#####################################
# Process: CAD to Geodatabase
arcpy.CADToGeodatabase_conversion(in_cad, temp_dir+'//'+temp_gdb, "FClass", "1000", "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 11258999068426.2;-1073.7418235 4194304001953.12;-100000 10000;8.98315284119522E-09;0.001;0.001;IsHighPrecision")
#####################################
# Process: Iterate Feature Classes
datasets = arcpy.ListDatasets(feature_type='feature')
datasets = [''] + datasets if datasets is not None else []
for ds in datasets:
for fc in arcpy.ListFeatureClasses(feature_dataset=ds):
path = os.path.join(arcpy.env.workspace, ds, fc)
print(path)
arcpy.FeaturesToJSON_conversion(fc, out_geojson, "FORMATTED", "NO_Z_VALUES", "NO_M_VALUES", "GEOJSON")
#####################################
# Process: Features To JSON
## arcpy.FeaturesToJSON_conversion(fc, out_geojson, "FORMATTED", "NO_Z_VALUES", "NO_M_VALUES", "GEOJSON")
#####################################
# Execute Delete FileGDB
#arcpy.Delete_management(newpath)
## return
def postExecute(self, parameters):
"""This method takes place after outputs are processed and
added to the display."""
return
... View more
02-03-2024
11:02 PM
|
0
|
2
|
1671
|
|
POST
|
Further in research, CAD file data type is considered as a non-simple feature. Thus it cannot be used as a user input. https://enterprise.arcgis.com/en/server/10.5/publish-services/windows/parameter-data-type-transformations.htm#ESRI_SECTION1_5C6000DB9B0341008B589D07782179CA
... View more
01-14-2024
11:14 PM
|
0
|
0
|
2108
|
|
POST
|
Hello There, We are facing below issue with ArcGIS Enterprise. The error log on ArcGIS Servers shows below information. Environment: ArcGIS Enterprise 11.1 Federated, 2 Portal machines, 2 ArcGIS Server machines There are around 5-10 messages per minute on each server(two servers, federated) Level: Warning Message: Unable to process request. Error handling service request :Could not find service. Service may be stopped or it may not be configured. Code: 9003
... View more
01-01-2024
03:20 AM
|
0
|
0
|
1043
|
|
POST
|
@Brian_Wilson Please find below. Thanks for your interest. # -*- coding: utf-8 -*-
import arcpy
class Toolbox:
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = "toolbox"
self.alias = "toolbox"
# List of tool classes associated with this toolbox
self.tools = [Tool]
class Tool:
def __init__(self):
"""Define the tool (tool name is the name of the class)."""
self.label = "DWGtoGEOJSON"
self.description = ""
def getParameterInfo(self):
"""Define the tool parameters."""
params = [
arcpy.Parameter(displayName="Input CAD File",
name="in_cad",
datatype="DECadDrawingDataset",
parameterType="Required",
direction="Input"),
arcpy.Parameter(displayName="Output JSON File",
name="out_json",
datatype="DEFile",
parameterType="Required",
direction="Output")
]
return params
def isLicensed(self):
"""Set whether the tool is licensed to execute."""
return True
def updateParameters(self, parameters):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parameter
has been changed."""
return
def updateMessages(self, parameters):
"""Modify the messages created by internal validation for each tool
parameter. This method is called after internal validation."""
return
def execute(self, parameters, messages):
"""The source code of the tool."""
in_cad = parameters[0].valueAsText
out_json = parameters[1].valueAsText
desktop = os.path.join(os.path.join(os.environ['USERPROFILE']), 'Desktop')
newpath = desktop+str(r'\output')
if not os.path.exists(newpath):
os.makedirs(newpath)
arcpy.env.workspace = desktop+r"\output\fGDB.gdb"
# Set local variables
out_folder_path = desktop+str(r"\output" )
out_name = "fGDB.gdb"
# Execute Create FileGDB, temp
arcpy.CreateFileGDB_management(out_folder_path, out_name)
#####################################
# Process: CAD to Geodatabase
arcpy.CADToGeodatabase_conversion(in_cad, out_folder_path+'/'+out_name, "FClass", "1000", "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 11258999068426.2;-1073.7418235 4194304001953.12;-100000 10000;8.98315284119522E-09;0.001;0.001;IsHighPrecision")
#####################################
# Process: Iterate Feature Classes
datasets = arcpy.ListDatasets(feature_type='feature')
datasets = [''] + datasets if datasets is not None else []
for ds in datasets:
for fc in arcpy.ListFeatureClasses(feature_dataset=ds):
path = os.path.join(arcpy.env.workspace, ds, fc)
print(path)
#####################################
# Process: Features To JSON
arcpy.FeaturesToJSON_conversion(fc, out_json, "FORMATTED", "NO_Z_VALUES", "NO_M_VALUES", "GEOJSON")
#####################################
# Execute Delete FileGDB
arcpy.Delete_management(newpath)
return
def postExecute(self, parameters):
"""This method takes place after outputs are processed and
added to the display."""
return
... View more
12-29-2023
10:14 PM
|
0
|
0
|
2267
|
|
POST
|
@Brian_Wilson Indentation is correct in the code, somehow it got posted wrong, all without indents. The tool worked fine in ArcGIS Pro.
... View more
12-28-2023
11:40 PM
|
0
|
0
|
2283
|
|
POST
|
Hello, A tool created for conversion, worked fine on ArcGIS Pro, but while/when published the Input value changed to constant value, need kindly help Environment: ArcGIS Pro 3.2.1, ArcGIS Enterprise 11.1 def getParameterInfo(self):
"""Define the tool parameters."""
params = [
arcpy.Parameter(displayName="Input CAD File",
name="in_cad",
datatype="DECadDrawingDataset",
parameterType="Required",
direction="Input"),
arcpy.Parameter(displayName="Output JSON File",
name="out_json",
datatype="DEFile",
parameterType="Required",
direction="Output")
]
return params
def execute(self, parameters, messages):
"""The source code of the tool."""
in_cad = parameters[0].valueAsText
out_json = parameters[1].valueAsText
desktop = os.path.join(os.path.join(os.environ['USERPROFILE']), 'Desktop')
newpath = desktop+str(r'\output')
if not os.path.exists(newpath):
os.makedirs(newpath)
arcpy.env.workspace = desktop+r"\output\fGDB.gdb"
# Set local variables
out_folder_path = desktop+str(r"\output" )
out_name = "fGDB.gdb"
# Execute Create FileGDB, temp
arcpy.CreateFileGDB_management(out_folder_path, out_name)
#####################################
# Process: CAD to Geodatabase
arcpy.CADToGeodatabase_conversion(in_cad, out_folder_path+'/'+out_name, "FClass", "1000", "GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]];-400 -400 11258999068426.2;-1073.7418235 4194304001953.12;-100000 10000;8.98315284119522E-09;0.001;0.001;IsHighPrecision")
#####################################
# Process: Iterate Feature Classes
datasets = arcpy.ListDatasets(feature_type='feature')
datasets = [''] + datasets if datasets is not None else []
for ds in datasets:
for fc in arcpy.ListFeatureClasses(feature_dataset=ds):
path = os.path.join(arcpy.env.workspace, ds, fc)
print(path)
#####################################
# Process: Features To JSON
arcpy.FeaturesToJSON_conversion(fc, out_json, "FORMATTED", "NO_Z_VALUES", "NO_M_VALUES", "GEOJSON")
#####################################
# Execute Delete FileGDB
arcpy.Delete_management(newpath)
return
... View more
12-28-2023
03:51 AM
|
0
|
6
|
2527
|
|
POST
|
Overwrite option in ArcGIS Pro https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/geoprocessing-options.htm
... View more
12-20-2023
12:32 AM
|
0
|
0
|
827
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-30-2025 05:19 AM | |
| 1 | 07-27-2022 02:15 AM | |
| 1 | 12-05-2023 03:22 AM | |
| 1 | 08-29-2023 11:37 PM | |
| 7 | 08-29-2023 11:34 PM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|