Select to view content in your preferred language

Will symbology set as input parameter from a layer file persist on output feature layer on web map?

567
0
07-23-2025 10:26 AM
mhaley_stone_env
Occasional Contributor

I have a geoprocessing tool that allows a user to select the symbology style for their output layer via layer file. The resulting output feature layer added to the map will reflect the selected layer file. I have successfully been able to do this in ArcPro either when the actual layer files are set as an input parameter (so stored with the tool) and referenced with Arcpy.SetParameterSymbology or by ApplySymbologyFromLayer_management. We make sure to reference the relative path to the layer files as well.

When the successful run of the tool is published as a service and ran in the analysis widget in the Experience Builder, I am either getting Error 000229 or 000732 stating it can't access the layer files published with the tool. We've registered the folder that the layer files are stored in with our server data store and also tried publishing the Tool with all data copied. 

Does anyone have any experience with setting user-defined symbology via layer files as a python tool parameter for use in a geoprocessing service?

 

0 Kudos
0 Replies