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="", username='geop', password='****')

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

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


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:



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?