Feature table is not initialized problem

4733
2
Jump to solution
12-01-2014 01:21 AM
TuukkaJärvinen
New Contributor III

Hello, I have an application that makes queries to six different layers on ArcGIS Server. All layers are shown on the map as Feature Layers and their feature tables are initialized. However, for some reason one of the tables gives following error while the same method works for other layers. Fiddler shows that the methods sends correct REST query and the result is also okay. What could possibly cause this error?

notinitialized2.png

0 Kudos
1 Solution

Accepted Solutions
TuukkaJärvinen
New Contributor III

Hi, I actually managed to solve this already. There were errors in the feature template of the service in question. I deleted the old template and republished the service and it started working again. I noticed this when I tried to call ServiceFeatureTable.OpenAsync to the table and it gave "bad allocation" error. However, I think calling the InitializeAsync to the FeatureLayer changed the FeatureLayer.FeatureTable.IsInitialized to true but did not actually manage to initialize it correctly.

View solution in original post

0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor

Hi. Could you share us the stack trace? Does this happen if it were the only FeatureLayer on your map? Thanks.

0 Kudos
TuukkaJärvinen
New Contributor III

Hi, I actually managed to solve this already. There were errors in the feature template of the service in question. I deleted the old template and republished the service and it started working again. I noticed this when I tried to call ServiceFeatureTable.OpenAsync to the table and it gave "bad allocation" error. However, I think calling the InitializeAsync to the FeatureLayer changed the FeatureLayer.FeatureTable.IsInitialized to true but did not actually manage to initialize it correctly.

0 Kudos