Error when creating list from custom template
-
09-12-2019 - |
Question
When I attempt to create a document library using an existing template I recieve an error "the type of this column cannot be changed because it is currently being indexed"
The error occurs on the 2nd line of code below:
SPListTemplate template = web.ListTemplates[Settings.CLTEMP_LISTTEMPLATE];
web.Lists.Add(libName, "Central Library staging area. Files get routed to the main library at the root.", template);
web.Update();
Not sure how to resolve and so any help appreciated.
I checked the fields in my schema.xml file and Indexed is set to FALSE for all columns.
thanks,
KS
Solution
Possible Solution:
- Go to Central Admin site -> Services applications
- Select the "Managed Metadata Service Proxy" -> Properties
- Clear the four checkboxes of the managed metadata service connection (regarding CT host, managed metadata, etc)
- Create the site collection
- Set the "Managed Metadata Service Proxy" properties to its original state.
OTHER TIPS
There is index column in your list template
check this blog and after that use your template it may works..
Metadata disappears for indexed columns that are edited to allow multiple responses.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange