Select to view content in your preferred language

GetTemplates Hangs on Pro 3.6

409
4
Jump to solution
01-23-2026 08:43 AM
JonathanDewalt
Regular Contributor

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 

0 Kudos
1 Solution

Accepted Solutions
JonathanDewalt
Regular Contributor

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.  

View solution in original post

0 Kudos
4 Replies
GKmieliauskas
Esri Regular Contributor

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.

0 Kudos
JonathanDewalt
Regular Contributor
I have a group layer and are processing each layer within. It works on the first layer but hangs on the second.
0 Kudos
GKmieliauskas
Esri Regular Contributor

I have added sample data to group layer and GetTemplates works on all layers. Have you installed SP1 on ArcGIS Pro 3.6?

0 Kudos
JonathanDewalt
Regular Contributor

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.  

0 Kudos