AnsweredAssumed Answered

Error 00068: Broken data source, when trying to publish Web Tool with Portal connection.

Question asked by MBennTLL on May 26, 2020
Latest reply on Jun 1, 2020 by MBennTLL

I am running into an issue when trying to publish our Geoprocessing tool as a Web Tool to our portal.

 

I created the simplest script, to recreate the issue:

 

from arcgis.gis import GIS
import arcpy

gis = GIS(url="https://gis.example.com/portal", username='geop', password='****')

fv = arcpy.GetParameterAsText(0)
if fv=="":
    fv = 'DEFAULT'
fv = str(fv)

arcpy.AddMessage("Parameter is: {}, type: {}".format(fv, type(fv)))
arcpy.AddMessage("Finished!")

 

It runs fine in ArcGIS Pro 2.5. When I try to share it as a Web Tool Error 00068 and Warning 24032 pop up, referencing a broken project data source.

Script TestScript contains broken project data source:

MESSAGEFORMAT=esriAGSInternetMessageFormatBin;SERVERTYPE=esriAGSServerTypeDiscovery;CONNECTIONMODE=esriAGSConnectionModePublisher;SERVERURL=https://gis.example.com/arcgis;USERPORTALANDFEDSERVERTOKEN=-1;PORTALURL=https://gis.example.com/portal

 

I suppose that including ArcGIS API for Python like this in Web Tool is not desired/supported. What is the correct way to include it?

Outcomes