You need to include the meat of your execute() function in order to get help on this. The code should include an arcpy.da.Editor "with" block.
- V
🙂
I copied and pasted from ArcPro
It's misspelled in Line 14 in the code above too. The error message is valid; the code needs to be fixed.
EDIT: I just noticed the code is asking for the connectionProperties of a layer, which I don't think is available. It is available in the workspace though.
I fixed the spelling error. It is first getting the workspace of the layer on line 13. then I am trying to get the version because I am only trying to edit within a version, not within the default.
The properties returned by the Describe methods vary based on the type of object being described.
"desc" is Describe-ing a layer, so it only has the properties of a layer.
Layer properties—ArcGIS Pro | Documentation, Geodatabase Feature Class properties—ArcGIS Pro | Documentation
If you want the properties of the workspace, I would get the output of a separate Describe method using 'workspace' (or desc.path) as an input
Workspace properties—ArcGIS Pro | Documentation
Maybe try getting the parameter object instead of the text in case describe() isn't complete with just the text. Also make sure that the layer you are inputting is correct (is in an enterprise geodatabase).