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

Was it helpful?

Solution

Possible Solution:

  1. Go to Central Admin site -> Services applications
  2. Select the "Managed Metadata Service Proxy" -> Properties
  3. Clear the four checkboxes of the managed metadata service connection (regarding CT host, managed metadata, etc)
  4. Create the site collection
  5. Set the "Managed Metadata Service Proxy" properties to its original state.

How to add Proxy to Managed Metadata Proxy

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
scroll top