Use python script tool from NET Arcgis Pro

735
0
04-16-2019 03:06 AM
gauthierverlin
New Contributor III

Hello,

I'm trying to execute a python script with a button created in AGP for SDK in Visual Studio.

I used the sample "CallScriptFromNet" to create a button that execute python script:

arcgis-pro-sdk-community-samples/Geoprocessing/CallScriptFromNet at master · Esri/arcgis-pro-sdk-com... 

My Python script is basic and just create a field to a point layer.


I would like the button to work when the point layer is displayed in the environment. However, when this is the case, I get the error 000464 :

000464: Cannot get exclusive schema lock. Either being edited or in use by another application.—Help... 

However, the button works when the point layer is not displayed in the view.

How is it possible to get rid of this error?

If you have any idea about this problem I be glad to hear about it.

Best regards

Gauthier

0 Kudos
0 Replies