Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

TaxonomySession.DefaultKeywordsTermStore Intermittently Returns null

$
0
0

I have created a SharePoint 2010 timer job which utilises the SharePoint Managed Metadata Service.

The code I have is :

// Get the taxonomy session

TaxonomySessionsession =newTaxonomySession(this.SharePointSite);

if(session ==null)

{

   LoggingService.LogVerbose("Taxonomy store unavailable");

   returnnull;

}

// Get the default keyword TermStore for the provided site

TermStoredefaultKeywordStore = session.DefaultKeywordsTermStore;

if(defaultKeywordStore ==null)

{

    LoggingService.LogVerbose("Default Keyword store unavailable for Taxonomy Session");

    returnnull;

}

From time to time,defaultKeywordStore is returned as null - occasionally, for periods, every defaultKeywordStore is returned as null for every call.

Anyone seen this sort of behaviour before?

Thanks for reading

      
















































































































































































           

returnnull;

            }


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>