Trouble Printing Secured Web Service

444
5
03-29-2021 02:05 PM
BenClark
New Contributor III

Hi all,

I've run into a problem that has me stumped. A while back I made a custom print template and published it to ArcGIS Server, and it worked great for a while, but all of a sudden I can't print some secured services that reside on the same ArcGIS Server instance as the print tool. The only clue I'm getting from my server logs is the message that Export Web Task is failing to create a layer from the service in question. In my latest example, I had a service that's shared with my organization throw this exception, but it began working once that same map service was made public. Again, everything is on the same server, and I'm stumped as to why it's now not working as expected. Thoughts?

Thank you!

Ben

0 Kudos
5 Replies
Irina_Rakhimova
Esri Contributor

Hi @BenClark ,

We recently had a similar issue with a custom print service where it didn't work for a secured layer hosted on the same ArcGIS Server (!). What worked for us is republishing from an external client (ArcMap) using ArcGIS Server DNS URL as a connection - previously tool was published using ArcGIS Server connection via internal machine name, however the Custom Print Service was being accessed via external DNS.  Hope this helps!

 

Regards,

Irina.

 

 

 

BenClark
New Contributor III

It might come down to that, @Irina_Rakhimova, but I think I'm dealing with a bigger issue: I was poking around today, revisiting this issue, and I'm not even able to pull up server logs to see what's manifesting there; the status bar just sits there like it's loading log entries but it never goes anywhere...

0 Kudos
Irina_Rakhimova
Esri Contributor

@BenClark have a look at the disc space where ArcGIS Server logs are being written to. I have seen a similar issue with log entries keep on "loading" when the disc space is running low.

0 Kudos
Tom_Merhige
New Contributor II

Hey @BenClark ,

I would check what Irina said. I have seen where the logs would not generate properly if the disk space is full where ArcGIS Server is installed. Also, were there any authentication changes made to your ArcGIS Server / Portal when you realized the issue started occurring? Does the same issue happen if you use the ArcGIS Server default print service instead of the custom Print template? 

Please let me know!

0 Kudos
BenClark
New Contributor III

Hello everyone,

This item took a back seat while I sorted some other things out, but I finally tackled it again today. It turns out that I needed to embed credentials in the service, as discussed here. The ArcGIS Pro method is somewhat beyond my current skillset, but I was able to do this using the simpler ArcMap method.