Question

I'm Info-path but crashes intermittently giving me error 304 Unknown resource.

Error happens at:

 XPathNavigator domNav = ds.CreateNavigator(); XPathNodeIterator rows = domNav.Select("/dfs:myFields/dfs:dataFields/tns:GetDataResponse/tns:GetData/NewDataSet/DynamicData", NamespaceManager); 

Here is my code:

 string myNamespace = NamespaceManager.LookupNamespace("my");
//Clear any previous entries 
XPathNavigator rTable = MainDataSource.CreateNavigator(); XPathNodeIterator tableRows = rTable.Select("/my:MainDataSource/my:group1/my:group2", NamespaceManager); 

if (tableRows.Count > 0) 
 {for (int i = tableRows.Count;i > 0; i--) 
{
XPathNavigator reTable =
 MainDataSource.CreateNavigator();
 XPathNavigator reTableRows =
 reTable.SelectSingleNode("/my:MainDataSource/my:group1/my:group2[" + i + "]",
 NamespaceManager);
reTableRows.DeleteSelf(); 
}
 }
//Connect to secondary data source 
DataSource ds = DataSources["GetData"]; 
XPathNavigator domNav = ds.CreateNavigator(); XPathNodeIterator rows = domNav.Select("/dfs:myFields/dfs:dataFields/tns:GetDataResponse/tns:GetData/NewDataSet/DynamicData", NamespaceManager); 

//Loop through secondary data source and populate the repeating table 

while (rows.MoveNext()) 
{ 

I have re-search everywhere. Where can be the issue?

Était-ce utile?

La solution

I had same issue with Info-path 2007. Exact same code was crashing with the above error and also Error 5566 . After lots of survey it turned out there is a problem with info path 2007.

I suggest to upgrade to info path 2010. In my case the stability issue was 99% resolved. I still do get crashes but by far less that before.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top