Select to view content in your preferred language

Error when using print service on dynamic layer

4342
15
07-17-2012 04:07 PM
GerardoArmendariz
Deactivated User
I am trying to get my application to use the new PrintTask.

When I try to print the current extent with a ArcGISDynamicMapServiceLayer, I get the following error:

Unable to complete operation.


Anyone out there who have successfully used the PrintTask with a dynamic layer?
Tags (2)
0 Kudos
15 Replies
GerardoArmendariz
Deactivated User
We've checked the firewall for any problems and did not find anything wrong.  Would it be possible that there would be a problem with the way we setup the web adaptor?

The JSON was build based on an example in the forum.  I don't think that's the problems since it seems to be working with ESRI's export service. 

Is it possible that your export service isn't able to connect to http://apps.tucson.ars.ag.gov/arcgis/rest/services/dap/DAPSites/MapServer? Maybe a DNS or firewall issue?

I'm curios where this JSON is coming from too since it doesn't look like it's from the PrintTask. I don't think that's the issue though since it does work from Esri hosted export services.
0 Kudos
RhettZufelt
MVP Notable Contributor
Not sure if it is related, but I find it intersting that your print task or does not show in your Rest Services Directory.<http://apps.tucson.ars.ag.gov:6080/arcgis/rest/services>  In fact, Idon't see any of the folders in there either.

If you go to the task itself, it is there, but not listed in the directory structure as ESRI's is here: <http://servicesbeta4.esri.com/arcgis/rest/services> where you "see" the folder/task listed under every level.

R_
0 Kudos
DasaPaddock
Esri Regular Contributor
I'd suggest contacting support at:
http://support.esri.com/
0 Kudos
GerardoArmendariz
Deactivated User
It turns out that my problem was related to the "hosts" file ( under Windows\System32\drivers\etc )

My server was not able to connect to the server's URL internally.

To solve it, I modified the mapping in the hosts file to this:

server_ip_address        localhost  SOURCESERVERNAME  SOURCESERVERURL

It now works!
0 Kudos
AlexRocco
Occasional Contributor
I have the same issue,well sort of. Using flashbuilder 4.6 i see my layers on the map but when I use the print widget it says unable to connect. Using ESRI services it works fine . If I use application builder it works fine for both my services and ESRI services but I need more advanced printing than application builder allows.  What does application builder do different than the source code as far as connecting to services???
0 Kudos
JanineLatham
Emerging Contributor
It turns out that my problem was related to the "hosts" file ( under Windows\System32\drivers\etc )

My server was not able to connect to the server's URL internally.

To solve it, I modified the mapping in the hosts file to this:

server_ip_address        localhost  SOURCESERVERNAME  SOURCESERVERURL

It now works!


can you post an example of your hosts file?
0 Kudos