I'm using the ESRI default print service URL in the print widget in several Web AppBuilder apps and it's returning an error in only one of the apps. The error text reads "Object doesn't support property or method 'hasVisualVariables' and appears immediately when hitting the Print button (see attached graphic). Once you get the error, it pretty much kills printing for the session. I don't know why other Web AppBuilder apps using the same print service and widget don't have this problem. I've removed the print widget and added it back to the app and it still errors out. The app in question is our Historical Imagery Viewer if anyone would like to test it. Browsers tested are IE 11.0.80 and Edge 40.15063.674.0 with EdgeHTML 15.15063. Our office doesn't have access to Firefox or Chrome, but I did see this error in Chrome on my personal laptop once or twice as well. I appreciate your help.
I'll probably be using an internal print service soon but this is all I have for now.
This is in some way related to your legend - I'm thinking it's dynamically generated maybe? If I choose the 'map only' template, it works.
Seems potentially related to BUG-000099816: When printing a map using the Print widget in Web Ap.. .
I'd follow up with Support Services to be sure.
Will do because the only other way I can print is to uncheck the "Include Legend" box in the print widget's advanced settings. I thought maybe it was one of my layers, but my testing says otherwise. Thanks.
it does not appear to be an issue with print service, rather an issue with the Print Widget. I see when 'Include Legend' is checked (thanks for the tip), the app/print widget does not even make any request to the print service. It fails right there.