Select to view content in your preferred language

Print Widget throws esriJobFailed

2662
5
04-22-2013 11:57 AM
RinatSolorzano_Palero
Deactivated User
Hi everyone, i would appreciate so much your help with this issue. I have published my web page with Print Widget as one of my toolsand it works fine when im inside my LAN, but when i run the Widget from any other location outside my network, it throws :esriJobFailed, I've seen the process with Fidler and HttpWatch (Firefox) but everything seems to be fine: the urls and the job assigment.

Please someone who could help me with this problem,

Thanks a lot!!

Rinat S.
Tags (2)
0 Kudos
5 Replies
RhettZufelt
MVP Notable Contributor
Are you using your own server print task, or the pre-configured ESRI print task server?

If your own, is it visible outside you LAN?  Can you see it in your browser from outside you LAN?

Would suspect that either you print task service is not visible outside the LAN, or you are using ESRI's supplied print task server, and your data is not visible outside the LAN (ESRI print task must have access to your data to create the print map).

R_

Also, when you say it works inside you LAN, is that for all computers inside the LAN, or just the localhost?
0 Kudos
RinatSolorzano_Palero
Deactivated User
Hi again,

Sorry for taking so long, but the work is harder now. Searching and trying to fix this problem i've reached what i guess is the main problem: when i fire the esri "ExportWebMap" (asynchronous) from outside LAN, i mean with an external link, there's this message:

"Error executing tool.: Layer LAYER1": Unable to connect to map server at http://www/arcgis/rest/services/LAYER/MapServer. Layer "LAYER2": Unable to connect to map server at http://www/arcgis/rest/services/LAYER2/MapServer. Failed to execute (ExportWebMap). Failed to execute (ExportWebMap)."

The tool is visible inside and outside LAN (But works only in computers inside it). I have published the exportwebmap from Arcgis with the correct toolbox (Server->ExportWebMap) and with all databases registered so i can´t really figure out the problem

Thanks again for the help

Rinat S.
0 Kudos
RhettZufelt
MVP Notable Contributor
Are you using the ESRI print task or your own?

If using the ESRI print task server, can you send me the actual link to your service?  If i can't see it, then neither can ESRI's server and it wont work.

If using your own server print task, can you see the below link in your browser from outside your lan (putting in your actual server name of course).
Hi again,

http://www/arcgis/rest/services/LAYER/MapServer


R_
0 Kudos
PatrickWild3
Regular Contributor
My guess is that your network is blocking basemap requests from ESRI. Try turning off the basemaps (comment them out of the code) and see if the print tool works. The issue is that ESRI's Akamai edge server does not return requests on the same i.p.

Hope that helps.
PW
0 Kudos
RinatSolorzano_Palero
Deactivated User
Thanks for the response!,

I finally got the answer... and it is that i didn't realize that while the exportwebmap job executes in the server side, uses the Rest services links sent from the client. This is a problem in my case because, from inside my company, we can't access the public url of my web page due some problems with the configuration of our ISP. So when the job recieved the links of our services to execute the printtask, this task used these external links, which weren't available, that's why the "Unable to connect to map server" message appeared. To fix this I had to add a line to my server hosts file:

        server private IP url    public application url
# 127.0.0.1                    localhost

and so now my server can resolve the public url, redirecting it to my local server IP, and the proccess completes.

Thanks again for the help

Rinat S.
0 Kudos