Hi,
I’m trying to publish an ArcMap Geoprocessing with ArcGIS Pro.
In brief, the geoprocessing service reads the name of a Shapefile that resides in a specific folder on the server and returns a 'Layer' as the output data type
In ArcMap, the script published as a geoprocessing service works well, with these properties:
In fact, the Output Layer Parameter is clearly visible in the resulting MapService.
The same script published with ArcGIS Pro with these parameters
results in these output parameters in the geoprocessing service.
This is a problem because it forces the output to have the exact schema of the shapefile used in the publishing process.
Output parameters is created by this row in the script:
output = arcpy.MakeFeatureLayer_management(fcDerived, 'MyContents')
where fcDerived is a feature Class created from Shapefile in a arcpy.env.scratchGDB.
Why ArcGIS Pro do this?
Have you a solution?
Thanks
Damiano
Hi,
I've partially resolved removing the layer added to a current map by scrypt, before pubblishing.
This produce output parameter without default schema:
But: layer in Mapservice don't have Query Capabilities...
this cause that is not possible to open attribute table in Map viewer and manager logs this error
Have you an idea?
Thanks...
Hi All,
does anyone in ESRI has suggestions to investigate this problem?
Thanks
Damiano