Error when activating feature of list instance - Fiks IT

Fiks IT

Everything began from nothing.

Post Top Ad

Responsive Ads Here
Error when activating feature of list instance

Error when activating feature of list instance

Share This
Hello,

Always we separate our project in features :
feature for the list instance.
feature for the list definition.
that's will help us to keep data of our list when we disable and we enable features.

so we should activate first of all the list definition then the list instance:
when activating the list instance we get this error:


to fix this issue we should add the feature ID in the listInstance elements.xml:

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ListInstance Title="TicketLD" OnQuickLaunch="TRUE" TemplateType="100" Url="Lists/Ticket" Description="Ticket List instance" FeatureId="2a3ef305-e7f8-4582-ad89-89612ff82d8b"></ListInstance>
</Elements>


Thanks for sharing.

Featured Post

Machine learning : GridSearch with Cross Validation , Sklearn

Grid Search Method :  This function helps you to get the best Kernel, gamma, C hyperparam to have a good prediction with the SVM algorit...

Post Bottom Ad

Responsive Ads Here

Pages