Having problems with the Print Widget.
I am using WebApp Builder in an Enterprise environment, the app i have created has the Print widget added but I keep getting an error when ever I try to print. I am using the default ESRI Service URL. I have tried different formats and layout options.
The error message I get is
We do have a pretty locked down Enterprise so I was wondering if this is a bug?? or something we have done in our settings?? Any ideas or suggestions would be great.
Solved! Go to Solution.
I know this thread is a few years old now. I wanted to add to the discussion for anyone else having this issue.
What worked for me was to toggle the service's sharing property from "Organization" to "Everyone(Public)" within the service properties. Save the setting as public. I tested the print widget and was able to get a print. Then I toggled the setting back to "Organization" and tested the print widget. I was able to get the print/map export to work.
My service data that was causing the error message is within an Enterprise database that requires username and password to see the data. If I turn off my services withing the map application and use the print widget I can print successfully. This test and the log within server manager led me to knowing that my service was the issue.
Jess,
what is the url of the print service?
and what is the error message you are getting?
Hi Tanu,
Thanks for replying. Sorry I thought had attached the error message.
The url I am using is: https://arcgis-map.infra.abs.gov.au/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20W...
The error message is:
Error executing tool. Export Web Map Task: Failed to create layer from service at
https://services.arcgisonline.com/ArcGIS/rest/services/Wor...
Failed to create layer from service at
https://services.arcgisonline.com/ArcGIS/rest/services/Refe...
Failed to execute (Export Web Map).
Failed to execute (Export Web Map Task).
Thanks Jess.
So, it is the print service that runs within your domain.
As you mentioned you are in a pretty locked down environment and it looks like print service is being blocked to access any service running on arcgisonline.com.
Here is that I'd recommend:
hope this helps.
Thanks
Tanu
Hi Jess I had a similar problem. I am in an Enterprise Environment, and while the print service was working fine with normal internal feature layers, for any external layers (like from Living Atlas) where we entered an ArcGIS Online username to hardcode access (so that individual users of the web app don't have to enter their passwords), the print widget was throwing errors. Sharing our portal items for those external layers 'to the public' fixed the problem for us. It doesn't really share the layers to the public, since we are in an internal environment, just to our organization.
I know this thread is a few years old now. I wanted to add to the discussion for anyone else having this issue.
What worked for me was to toggle the service's sharing property from "Organization" to "Everyone(Public)" within the service properties. Save the setting as public. I tested the print widget and was able to get a print. Then I toggled the setting back to "Organization" and tested the print widget. I was able to get the print/map export to work.
My service data that was causing the error message is within an Enterprise database that requires username and password to see the data. If I turn off my services withing the map application and use the print widget I can print successfully. This test and the log within server manager led me to knowing that my service was the issue.