Print Widget

726
3
Jump to solution
04-24-2017 01:50 PM
GeorgeKatsambas
Occasional Contributor III

When I add the print widget and set the service url i get an error that this is not a print task. See Attachment. When I add this 

http://xxxxxx.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task

it tells me its a print task and works. What is the %20

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

%20 is url encoding for a space in the url. I am not sure why it would not accept 

"http://xxxxxx.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task" though.

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

%20 is url encoding for a space in the url. I am not sure why it would not accept 

"http://xxxxxx.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task" though.

View solution in original post

Jcordovafredes
Occasional Contributor

Hi, any other suggestions to make it work?

remove % 20 and it doesn't work for me

Greetings

0 Kudos
abureaux
Occasional Contributor

I find the print tool is finicky. I have found that I sometimes need to delete the URL and paste a fresh one in, even if there are no changes.

My two biggest tips would be:

  1. As already mentioned, %20 is HTML for a space. By default, "Export Web Map" has spaces. These spaces will all be converted to %20 by the widget. When you paste the link in, let WAB convert the spaces to %20.
  2. The URL, at least in my case, needs to be updated from default for the Print widget to work. The URL it is looking for is the same as the REST Service URL for Export Web Map. Go to your portal > find/open the print tool > scroll down > look for URL at the bottom right and click View to go to the REST Service Directory.
    abureaux_0-1629991384192.png
    Once there, click the "Export Web Map" URL, and then copy the full URL from the URL bar and paste into your Print widget. If you have Service Directory disabled, this will obviously not work.
    1. If your Service Directory is disabled, you can always try this: In your Print widget, copy the URL (see image above for reference) and paste into your URL bar (or and text editor - this is just convenient). Then, add /Export Web Map (with spaces). See below for before and after
      1. https://YOURSERVER.com/server/rest/services/WebTools/Printing_Layouts/GPServer
      2. https://YOURSERVER.com/server/rest/services/WebTools/Printing_Layouts/GPServer/Export Web Map
0 Kudos