AnsweredAssumed Answered

Use python script tool from NET Arcgis Pro

Question asked by gverlin01 on Apr 16, 2019

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-community-samples · Git… 

 

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 | ArcGIS Desktop 

 

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

Outcomes