本文介绍了O365 SharePoint:分类更新计划程序未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

团队,

Hi Team,

我遇到了SharePoint Online分类法中的一个严重问题,其中分类法甚至在两天后都没有得到更新.

I am into this serious issue with SharePoint Online Taxonomy, in which Taxonomy are not getting updated even after 2 Days.

背景:

1.我们在网站集级别配置了分类法,例如10种语言的课程,技能等.

1. We have configured taxonomies at site collection level like Courses, Skills etc. for 10 different languages.

2.我们很少有带有管理的元数据"列的列表,这些列包含来自上面配置的术语集的数据.

2. We have few lists with Managed Metadata columns having data from above configured term-sets.

3.现在,很少有课程名称必须针对不同的语言进行更新(由语言翻译"建议)

3. Now few of the Courses Name have to be updated for different languages ( suggested by Language translator )

4.我们更新了分类法,但是这些更新未反映在列表字段中.我们可以在编辑"列表中看到列表项的分类法的更新值.模式.

4. We have updated the taxonomy , but these updates are not reflecting into the list fields. We can see the updated values of taxonomy for the list item in "Edit" mode only.

       现在我知道调度器每小时运行一次并更新分类法.但是在这种情况下,我已经更新了分类法,并且我等待了两天,但是它没有反映在列表项中.

        Now I am aware of scheduler which runs every hour and updates the taxonomy.But in this case i have updated the taxonomy and i am waiting from 2 days, but its not reflecting in list items.

解决方法:

以下是我最后尝试过的CSOM代码&等待2天后.

Below is the CSOM code i have tried at last & after waiting 2 days.

根据以下文章:

TaxonomySession.UpdateCache 方法

TaxonomySession.UpdateCache Method

但是这段代码也没有用.

But this code also did not worked.

 using (var clientContext = GetClientContext(spHostUrl))
            {

                TaxonomySession taxonomySession = TaxonomySession.GetTaxonomySession(clientContext);
                taxonomySession.UpdateCache();
                clientContext.Load(taxonomySession, ts => ts.TermStores);
                clientContext.ExecuteQuery();

                if (taxonomySession.TermStores.Count == 0)
                    throw new InvalidOperationException("The Taxonomy Service is offline or missing");

                Console.WriteLine("Code Executed");
                Console.ReadLine();

            }

请帮助以上问题.


Sandeep Nandey

Please help with above issue.


Sandeep Nandey

推荐答案

在SharePoint内部,我们可以使用TaxonomySession . SyncHiddenList方法来解决它,不幸的是,它不在客户端对象模型中.

In SharePoint on- premise, we can use TaxonomySession.SyncHiddenList Method to solve it, unfortunately, it is not contains in Client Object Model.

https://msdn.microsoft.com/en-us /library/microsoft.sharepoint.client.taxonomy.taxonomysession_members.aspx

请尝试转到TaxonomyHiddenList( [网站集网址]/Lists/TaxonomyHiddenList/AllItems.aspx)并尝试检查项目.

Please try to go to TaxonomyHiddenList([site collection url]/Lists/TaxonomyHiddenList/AllItems.aspx) and try to check the items.

更多信息:

分类更新调度程序不起作用?

http://sharepoint-relieved.blogspot.sg/2014 /09/taxonomy-update-scheduler-not-working.html

最好的问候,

Dennis


这篇关于O365 SharePoint:分类更新计划程序未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 19:28