Print function not working

327
6
Jump to solution
09-13-2021 11:23 AM
naveenbeti
New Contributor III

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).

@naveenbeti

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
naveenbeti
New Contributor III

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

6 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).

@naveenbeti

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

naveenbeti
New Contributor III

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
naveenbeti
New Contributor III

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
naveenbeti
New Contributor III

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