Select to view content in your preferred language

Printtask not working?

673
3
Jump to solution
08-01-2023 11:35 AM
LefterisKoumis
Frequent Contributor

I use a reference to printtask

https://totalapis.github.io/api-reference/esri-tasks-PrintTask.html 

but a console.log gives errors:

LefterisKoumis_0-1690914844108.png

When I access directly the printask script at:

https://js.arcgis.com/4.27/esri/tasks/PrintTask.js 

I get this:

LefterisKoumis_1-1690914944122.png

 

1 Solution

Accepted Solutions
LaurenBoyd
Esri Contributor

Hi @LefterisKoumis -

The task modules were removed at version 4.24 - see the breaking change list in the release notes for version 4.24: https://developers.arcgis.com/javascript/latest/4.24/#breaking-changes 

You're going to need to use the esri/rest/print module: https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html 

Lauren

View solution in original post

0 Kudos
3 Replies
LaurenBoyd
Esri Contributor

Hi @LefterisKoumis -

The task modules were removed at version 4.24 - see the breaking change list in the release notes for version 4.24: https://developers.arcgis.com/javascript/latest/4.24/#breaking-changes 

You're going to need to use the esri/rest/print module: https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-print.html 

Lauren
0 Kudos
LefterisKoumis
Frequent Contributor

Thank you @LaurenBoyd . It would be helpful for the developers if a note was posted at the printtask page that says "Printtask is deprecated since version 4.24"

0 Kudos
ReneRubalcava
Honored Contributor

That API reference page is a copy hosted by someone else that posted the downloaded sdk doc. Esri has no control over that page.

0 Kudos