I am trying to get ConvertWebMapToArcGISProject to work with secured mapserver services on our 11.2 Enterprise. The ArcGIS Servers are federated with portal using default authentication. I am using arcpy.ImportCredentials in my script and then arcpy.mp.ConvertWebMapToArcGISProject. This works fine in Pro. When I publish to ArcGIS Server and a Geoprocessing Task it always errors
on ConvertWebMapToArcGISProject. The ImportCredentials is accessing AGS files for server that are
functioning fine in Pro. The AGS files are using stored credentials.
These are some of the errors showing up in the Server log:
SEVERE | Jan 30, 2024, 4:21:22 PM | Error performing query operation Error handling service request :Illegal access: this web application instance has been stopped already. Could not load [META-INF/services/javax.xml.parsers.DocumentBuilderFactory]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access. | Rest |