I have am connected to our company portal and I have a serviceFeatureTable (onlineFeatureTable) that I set to one of my maps operationallayers and then regularly query and get results from it
onlineQueryID = serviceFeatureTableX.queryFeaturesWithFieldOptions(fieldsQueryParameters, Enums.QueryFeatureFieldsLoadAll);
This query normally returns results when its feature status is updated and Does Something with it
Connections <SPAN class="punctuation token">{</SPAN>
target<SPAN class="punctuation token">:</SPAN> onlineFeatureTable
onQueryFeaturesStatusChanged<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">{</SPAN>
<SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>onlineFeatureTable<SPAN class="punctuation token">.</SPAN>queryFeaturesStatus <SPAN class="operator token">===</SPAN> Enums<SPAN class="punctuation token">.</SPAN>TaskStatusCompleted<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN>
Do Something
<SPAN class="punctuation token">}</SPAN>
<SPAN class="keyword token">else</SPAN> <SPAN class="keyword token">if</SPAN> <SPAN class="punctuation token">(</SPAN>onlineFeatureTable<SPAN class="punctuation token">.</SPAN>queryFeaturesStatus <SPAN class="operator token">===</SPAN> Enums<SPAN class="punctuation token">.</SPAN>TaskStatusErrored<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN>
ERROR
<SPAN class="punctuation token">}</SPAN>
<SPAN class="keyword token">else</SPAN>
<SPAN class="punctuation token">{</SPAN>
Enums<SPAN class="punctuation token">.</SPAN>TaskStatusInProgress
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN>
<SPAN class="punctuation token">}</SPAN> This above normally works. But it seems that after about a half hour or so, my table never returns any results, I get the TaskStatusInProgress back from the Tables FeaturesStatusChanged Property, but never anything else. The only way I can get this to reset is to run the logic to rebuild my ServiceFeatureTable, but I never know when to do this. Is there a timeout or something on the ServiceFeatureTable that I can catch or monitor, or some status that I can get on the table to know if it is "Stagnant" in some way.