Background:
I am in charge of a map for my organization that utilizes a lot of external data. If it is data that requires an ArcGIS Online subscription (like Living Atlas Data) we create a new layer in the portal by going to My Content > Add Item > From a URL > ArcGIS Sever web service. This way, we have a portal content item in our enterprise environment where we can save the ArcGIS Online password, and not require all of our users to sign into ArcGIS Online to use the layer.
Problem/Question:
Unfortunately, some of these password-protected-external-layers / 'Url-added-feature-layers' (not sure what to call these) have trouble with the print widget in our web apps and I've seen some really weird behavior. I am looking for help with troubleshooting the following situation in particular:
For our internal version of the USA_Wildfires_v1 layer I could print one of the layers in the feature service but not the other. Turns out, for the problem causing layer, I needed to go into the JSON of the map and remove the "layerDefinition" - after doing this I could print the layer. (https://services9.arcgis.com/RHVPKKiFTONKtxq3/arcgis/rest/services/USA_Wildfires_v1/FeatureServer)
I've been troubleshooting and it seems like, at least for some of the problem layers, removing the "layerDefinition" from the layer in the map's JSON ((and instead having the map and print widget just reference the default feature service symbology) fixes the issue.
Why is that? Could an old way that the Web Viewer used to create layer definitions cause problems with the current print service? Or could it be due to the print service not being able to reconcile what the service is saying the layer definition is versus what the map is saying?
Follow up Question: Does that (situation above) mean I can't have any "layerDefinitions" on these external layers if I want to be able to print them?
Thanks,
Blythe Spendlove