ArcGIS Pro GPTool not able to publish

204
0
05-09-2023 11:18 PM
WUE_BARAL
New Contributor II

I currently have the problem that I can no longer publish the GPTool in ArcGIS Pro.
In the tool 4 layers are addressed, which are correctly located in the map (I can also see the data over the attributetable).
Also, the tool returns with a success when testing in ArcGIS Pro.
But if I now try to publish the tool, then comes with all 4 layers the error 00068 Script ... contains broken data source: Layername
To find the source of the error in the script I have minimized the code piece by piece.
It seems to be a function of Arcpy.

LAYERNAME = "MYLAYER
arcpy.SelectLayerByAttribute_management(LAYERNAME, "CLEAR_SELECTION")

But I have no idea how to fix the problem.

 

0 Kudos
0 Replies