I am running into a problem simply adding the Print map component, which results in an error. Network traffic shows successful calls to the print service, returning valid info. However, I can't get around the UI error. All console warnings and errors have been cleared, so there are no other clues. I'm using multiple other components just fine. This is a React 19 app using 4.32.13 map components.
<arcgis-map
id="mapEl"
className="map-container"
>
<arcgis-print
printServiceUrl="https://gis.acme.com/rest/services/Print/GPServer/Export%20Web%20Map"
></arcgis-print>
<arcgis-zoom position="bottom-left"></arcgis-zoom>
</arcgis-map>
Are you trying to print layers from AGOL? If so, maybe the AGOL issues from the recent update are impacting your print service.
Hi Michael,
The Print component is set up to use an internal Export Web Map print service. This is done by specifying the print-service-url in the code. According to the documentation, when you set the print-service-url the component does not use Portal/ArcGIS Online. Instead it uses the direct service url that is provided.
@ShaneBuscher - do you have the Get Layout Templates Info Task published as well (possibly at this url)?
https://gis.acme.com/rest/services/Print/GPServer/Get%20Layout%20Templates%20Info%20Task
Does this print service work with the Print widget? Did it work with the Print component previously?
@Noah-Sager I do not have the Get Layout Templates task published. That is certainly something I can try. Only the REST endpoint has been used so the Print widget hasn't been tested and no previous Print components previously worked.
@ShaneBuscher - bingo, that's probably it. It's required for custom print services. The Print widget could maybe work around that, but the Print component will not.
There is an ArcGIS Online service disruption currently that may be affecting printing. If the issue is new today, I suggest waiting until the disruption is resolved. If the issue is old, we recently released a new version of the SDK that you could test with.
https://developers.arcgis.com/javascript/latest/release-notes/
test-app: https://codepen.io/noash/pen/WbvKXKE
I'm not using ArcGIS Online but thanks for the heads up.