Print function not working

6143
7
Jump to solution
09-13-2021 11:23 AM
naveenbesri
Frequent Contributor

Hi All,

I have created a custom template and published print gp service. when i tried to execute the gp service im getting below issue.

error":{"code":400,"extendedCode":-2147467261,"message":"Unable to complete operation.","details":["Error executing tool. Export Web Map : error raised...C:\\arcgisserver\\directories\\arcgisjobs\\exportwebmap_gpserver\\j2106a424ff05454694ce6707527f82a7\\scratch\\e4257a3a-139c-11ec-a2ba-000d3a498f18.jpg\nC:\\arcgisserver\\directories\\arcgisjobs\\exportwebmap_gpserver\\j2106a424ff05454694ce6707527f82a7\\scratch\\e4257a3a-139c-11ec-a2ba-000d3a498f18.jpg\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map)."]}}

 

one more thing even my default print gp service is also not working. below is the error in the server manager logs. 

Error executing tool. Export Web Map : Failed to create layer from service at https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer. Failed to execute (Export Web Map). Failed to execute (Export Web Map).

 

Kindly help me on this.

 

Thanks

Naveen 

0 Kudos
4 Solutions

Accepted Solutions
TanuHoque
Esri Regular Contributor

 

one more thing even my default print gp service is also not working. below is the error in the server manager logs. 

Error executing tool. Export Web Map : Failed to create layer from service at https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer. Failed to execute (Export Web Map). Failed to execute (Export Web Map).

@naveenbesri

Usually that happens when your server, that is where your print service running on, does not have access to arcgisonline servers. Please check with your network admins.

One easy way to check it or show it to your admins is:
- log on to the server machine as the arcgis account user (aka SOC account) basically that runs all arcgissoc.exe process
- open a web brower
- try to access an arcgisonline basemap service

 

I have created a custom template and published print gp service. when i tried to execute the gp service im getting below issue.

error":{"code":400,"extendedCode":-2147467261,"message":"Unable to complete operation.","details":["Error executing tool. Export Web Map : error raised...C:\\arcgisserver\\directories\\arcgisjobs\\exportwebmap_gpserver\\j2106a424ff05454694ce6707527f82a7\\scratch\\e4257a3a-139c-11ec-a2ba-000d3a498f18.jpg\nC:\\arcgisserver\\directories\\arcgisjobs\\exportwebmap_gpserver\\j2106a424ff05454694ce6707527f82a7\\scratch\\e4257a3a-139c-11ec-a2ba-000d3a498f18.jpg\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map)."]}}


Which version of ArcGIS Server you have? We had a similar issue with .pdf output at one point and I believe that got fixed in 10.9 and we also released the fix as a patch. It might worth trying that out.

Also, did you publish your print service from ArcMap or ArcGIS Pro?

 

thanks

Tanu

View solution in original post

TanuHoque
Esri Regular Contributor
naveenbesri
Frequent Contributor

its working thank you for the info 🙂 

View solution in original post

TanuHoque
Esri Regular Contributor

I'm glad it is working. Thanks for your updates.

View solution in original post

7 Replies
TanuHoque
Esri Regular Contributor

 

one more thing even my default print gp service is also not working. below is the error in the server manager logs. 

Error executing tool. Export Web Map : Failed to create layer from service at https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer. Failed to execute (Export Web Map). Failed to execute (Export Web Map).

@naveenbesri

Usually that happens when your server, that is where your print service running on, does not have access to arcgisonline servers. Please check with your network admins.

One easy way to check it or show it to your admins is:
- log on to the server machine as the arcgis account user (aka SOC account) basically that runs all arcgissoc.exe process
- open a web brower
- try to access an arcgisonline basemap service

 

I have created a custom template and published print gp service. when i tried to execute the gp service im getting below issue.

error":{"code":400,"extendedCode":-2147467261,"message":"Unable to complete operation.","details":["Error executing tool. Export Web Map : error raised...C:\\arcgisserver\\directories\\arcgisjobs\\exportwebmap_gpserver\\j2106a424ff05454694ce6707527f82a7\\scratch\\e4257a3a-139c-11ec-a2ba-000d3a498f18.jpg\nC:\\arcgisserver\\directories\\arcgisjobs\\exportwebmap_gpserver\\j2106a424ff05454694ce6707527f82a7\\scratch\\e4257a3a-139c-11ec-a2ba-000d3a498f18.jpg\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map)."]}}


Which version of ArcGIS Server you have? We had a similar issue with .pdf output at one point and I believe that got fixed in 10.9 and we also released the fix as a patch. It might worth trying that out.

Also, did you publish your print service from ArcMap or ArcGIS Pro?

 

thanks

Tanu

naveenbesri
Frequent Contributor

Thanks for the info regarding the default print service. will look into that with our admins.


Which version of ArcGIS Server you have? We had a similar issue with .pdf output at one point and I believe that got fixed in 10.9 and we also released the fix as a patch. It might worth trying that out.

we are using 10.8.1 enterprise version.

Also, did you publish your print service from ArcMap or ArcGIS Pro?

we used ArcGIS Pro to publish the print gp service. 

0 Kudos
naveenbesri
Frequent Contributor

Hi @TanuHoque Tanu,

I made a layer(not arcgisonline layers) as basemap in the webmap and tried using the default print service to generate pdf.

we are able to download the pdf when we use map_only option. but when i tried to select the any template example A3 or A4 landscape we are facing issue again. below is the error 

Error executing tool. Export Web Map Task : error raised...C:\arcgisserver\directories\arcgisjobs\utilities\printingtools_gpserver\jb73394eb47104e4fb928ba80a2013200\scratch\a43f196e-1646-11ec-8b0a-000d3a498f18.pdf C:\arcgisserver\directories\arcgisjobs\utilities\printingtools_gpserver\jb73394eb47104e4fb928ba80a2013200\scratch\a43f196e-1646-11ec-8b0a-000d3a498f18.pdf Failed to execute (Export Web Map). Failed to execute (Export Web Map Task).

Could you please help me out whats the issue ?

TanuHoque
Esri Regular Contributor
naveenbesri
Frequent Contributor

its working thank you for the info 🙂 

TanuHoque
Esri Regular Contributor

I'm glad it is working. Thanks for your updates.

Rohit_Venkat_GandhiMendadhala3
Emerging Contributor

I have tried installing the patch on the server, but the same error still pesists. The map-image layers which I am trying to print are only accessible internally or via VPN. They dont have any credentials associated with them. Is there a way to fix this issue? The webmap prints fine if I switch off the map-image layers and just print the basemap.

0 Kudos