I have a custom print service published from ArcGIS Pro 3.4.2 to Enterprise 11.2. The print service is working as expected except for the Legend. When I use this service in a Print Widget tool in Experience Builder, I see the option to "Include Legend". If I leave this un-checked and run the tool, the legend is not included but the border and background of the legend are. So there is a white box with a black border with nothing inside. When the box is checked to include the legend, the legend appears properly as expected. I see the same behaviour in Map Viewer if I set the custom print service as the default in Organization > Settings > Utility services.
Is there any way to have the "Include Legend" option not show the border and background of the legend element when it is un-checked?
Is this border and background truly part of the legend or are they separate items from the legend used to make the legend more presentable?
Was the layout imported from an previous ArcMap incarnation?
@MikeVolz the border and background are configured in the Legend element Display settings in the Properties of the legend on the layout, so I'm assuming they are part of the legend. The layout was not imported from ArcMap.
Have you created more than Experience with the custom Print Widget tool to see if this issue can be repeated?
I have engaged with Esri support and will report back the results.