delete
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.
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.
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).
I copied and pasted from ArcPro
🙂
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
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.