this line is hanging on Pro 3.6
var editTemplates = featLayer.GetTemplates();I have a function which is basically this sample.
https://pro.arcgis.com/en/pro-app/3.5/sdk/api-reference/topic9977.html
This has worked in all versions of Pro till 3.6. now it hangs.
Anyone else having issues or solution?
Thanks
Solved! Go to Solution.
I found a better solution. When it loops through each layer in my group layer, the GetTemplates will work on the first but hang on the second layer. I decided to move the GetTempaltes out of the loop method and use the GetTemplates on the group layer itself and then pass in that collection to the original method. This way, I can simply filter the collection for the templates that belong to the layer being processed.
Hi,
I have made a test with ArcGIS Pro 3.6 SP1 and Esri ArcGIS Pro SDK sample RowEventTest code and Esri sample data C:\Data\FeatureTest\FeatureTest.aprx. It works fine.
I have added sample data to group layer and GetTemplates works on all layers. Have you installed SP1 on ArcGIS Pro 3.6?
I found a better solution. When it loops through each layer in my group layer, the GetTemplates will work on the first but hang on the second layer. I decided to move the GetTempaltes out of the loop method and use the GetTemplates on the group layer itself and then pass in that collection to the original method. This way, I can simply filter the collection for the templates that belong to the layer being processed.