Hi I have published the Custom print service in 10.9.1 using ArcGIS Pro 2.9 (Before i was tried to publish from ArcGIS pro 3.2, But cannot able to publish asking giving some parameter error, Mapservices are published using 3.2 ArcGIS pro)
Now after publishing using ArcGIS Pro 2.9 giving the below error.
Unable to complete operation. Error executing tool. Export Web Map : ConvertWebMapToArcGISProject() takes from 1 to 4 positional arguments but 5 were
I have given the below Json . I hide the url due to confidential. Please help
Solved! Go to Solution.
Hi everyone,
I forgot to update you on the issue.
I have resolved it by creating another export web map tool by duplicating the existing one. I copied the same Python script to another location and created a new toolbox with the same parameters. After publishing the print tool, it worked.
It seems there might be some compatibility or overwrite issues between ArcGIS Server and ArcGIS Pro.
Finally, it worked. Sorry for the late reply
When using ArcGIS Pro 3.2 or 3.3 on an ArcGIS Server 11.1 machine, or ArcGIS Pro 3.1 and later versions on an ArcGIS Server 10.9.1 machine, you may encounter failures with the default ArcGIS Print tool located in the utilities folder. This issue also affects custom print tools published.
To resolve this, you need to remove ArcGIS Pro from the ArcGIS Server machine, which will fix the default Print Tool error. If you need to publish a Custom Print GP tool, use ArcGIS Pro 3.0.3 or 2.9 with ArcGIS Server 11.1 or 10.9.1, as these versions work without issues.
It appears that upgrading ArcGIS Pro to 3.1 or 3.2 alters or upgrades the server print tool parameters, causing these compatibility issues.
can you pls elaborate on 'custom print service' part? Did you write you own arcpy based print service? Or you simply run Export Web Map gp tool in ArcGIS Pro 2.9 and publish the result out as a print service?
Hi TanuHoque
I have created the one Layout template kept in one folder, using the Server-Print Tools (Get Layout Template info and Export WebMap, Published the Export Web map) I have published the custom print service with Copy all function.
I did not write the ArcPy . I hope i have detailed about the issue.
Note : If i run the Webmap as Json data in ArcGIS pro its working fine, But in web app builder not working.
Thanks @RamaRaomalisetti
a few questions:
Sorry for late reply, ConvertWebMapToArcGISProject function in the Python ArcGIS pro 3.2 have the custom parameters are 5 . For the 2.9 Custom parameters are 2.
Its worked when i install once again 2.9 arcgis pro in another machine , then Published as a new service. But i do not understand why it not worked on that machine. I hope if i overwrite the layout once again might be not work.
Hi everyone,
I forgot to update you on the issue.
I have resolved it by creating another export web map tool by duplicating the existing one. I copied the same Python script to another location and created a new toolbox with the same parameters. After publishing the print tool, it worked.
It seems there might be some compatibility or overwrite issues between ArcGIS Server and ArcGIS Pro.
Finally, it worked. Sorry for the late reply
Hi there, how did you get around the additional parameters that are not compatible with 11.1? Could you share your python script and/or some pictures? I tried making a copy of the tool as well but it is still not publishing correctly, not sure what I'm doing wrong.
hello all,
like to share a good news. If everything goes as planned, a fix for this should be included in the upcoming Enterprise release 11.3.
When using ArcGIS Pro 3.2 or 3.3 on an ArcGIS Server 11.1 machine, or ArcGIS Pro 3.1 and later versions on an ArcGIS Server 10.9.1 machine, you may encounter failures with the default ArcGIS Print tool located in the utilities folder. This issue also affects custom print tools published.
To resolve this, you need to remove ArcGIS Pro from the ArcGIS Server machine, which will fix the default Print Tool error. If you need to publish a Custom Print GP tool, use ArcGIS Pro 3.0.3 or 2.9 with ArcGIS Server 11.1 or 10.9.1, as these versions work without issues.
It appears that upgrading ArcGIS Pro to 3.1 or 3.2 alters or upgrades the server print tool parameters, causing these compatibility issues.