问题描述
在SharePoint Online中,将托管元数据网站列添加到contenttype-hub中的内容类型,并在Record Center网站集中进行预订.使用内容类型创建文档库,并且还为元数据创建索引列 柱子.由于某些原因,我删除了索引列,现在该列从此索引下拉列表的主列.
我可以使用UI和powershell中的可用列来创建索引列.
我已经尝试了以下方法,但没有任何运气:
In SharePoint Online, a managed metadata site column is added to a contenttype in a contenttype-hub and subscribed within a Record Center sitecollection. A document library is created using the contenttype and an Index column is also created for the metadata column. Due to some reason, I have deleted the index column and now the column is missing from thePrimary column for this index dropdown.
I can create index columns with the available columns from the UI and from powershell.
I have tried the following without any luck:
- 重新索引库和网站集
- 重新创建库
- 重新创建了网站集
- 以下Powershell脚本适用于可用列,但不适用于缺少的列:
- Reindex the library and sitecollection
- Recreated the library
- Recreated the sitecollection
- Following powershell script is working for available columns but not for the missing one:
$field = $list.Fields.GetByTitle("Column Name");
$field.Indexed = $true;
$field.Update();
$clientContext.Load($field);
$clientContext.ExecuteQuery();
- 在 ExecuteQuery()上收到以下错误.
异常调用"ExecuteQuery";带有"0"参数:无法完成此操作.请再次尝试 - Receiving the following error on ExecuteQuery().
Exception calling "ExecuteQuery" with "0" argument(s): "Cannot complete this action. Please try agai
我需要对列进行索引,以避免出现列表视图阈值问题.
请帮忙!!!
I need the column to be indexed to avoid List View Threshold issue.
Please help!!!
Avijit Sur
Avijit Sur
推荐答案
尝试以下代码:
这篇关于无法在SharePoint Online中重新创建索引列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!