Questions tagged [feature-activation]
A feature-activation is a process which makes a feature active programatically, using power shell or through a web interface. A feature needs to be active in order to be used.
301 questions
1
vote
1
answer
2k
views
How do I determine a dependent hidden Site Collection feature?
When attempting to activate the Content Organizer feature for a site collection (Site Settings > Manage Site Features > Content Organizer > Activate) an error indicating that this feature is ...
0
votes
1
answer
391
views
How Can I Output Enterprise Features List To CSV?
I am trying to output to a CSV file the list of activate enterprise features in our sites with DisplayName, GUID and Scope as the content that is written to the CSV file.
I have the following ...
1
vote
1
answer
831
views
Feature Event Receiver not picking up latest code until second activation
I have a Feature with an event receiver (written in c#), which for the sake of brevity creates a list which is a data store for a form on a custom web part. I have ps1 scripts which retract and deploy ...
2
votes
2
answers
2k
views
Activate Approval, Collect Feedback, and Collect Signatures workflows for a site collection?
All workflows are active except for Approval, Collect Feedback, and Collect Signatures.
Everything I've read says to go to Site Collection Features and activate Workflows. I've done this, but ...
1
vote
2
answers
8k
views
Reactivating feature with powershell - disable enable feature if it's active
$snapin = Get-PSSnapin | Where-Object { $_.Name -eq "Microsoft.SharePoint.Powershell" }
#This script enables a feature on every site collection on a given web app
if ($snapin -eq $null)
{
Add-...
0
votes
1
answer
312
views
webprovisioned activatedfeature save conflict
I am having an issue when creating a WebProvisioned eventreceiver that activates a feature. However I am getting the "Save conflict - Your changes conflict with those made concurrently by another user....
2
votes
2
answers
143
views
Sharepoint is keeping a record of un-installed solutions
Today i ran a powershell script that lists all the features on my Sharepoint 2013 system along with their 'scope' and 'GUID'. I noticed while looking at the list that it also includes features that ...
0
votes
1
answer
247
views
Feature error when deploying a master page with visual studio 2013
I am new in working with VS13 to edit master pages, when I try to deploy it gives an error:
Error 30 Error occurred in deployment step 'Activate Features': Feature with Id '294c74bc-089c-49f1-...
1
vote
1
answer
1k
views
SP2013 Cannot create "_catalogs/masterpage"
I have created in my VS2013 solution a Masterpage module. The problem is that during feature activation I encounter a message 'Cannot create "_catalogs/masterpage', as if the feature was not being ...
1
vote
0
answers
143
views
Call FeatureInstalled method on feature activation and after FeatureActivated
I like to call FeatureInstalled method of feature after the FeatureActivated method. How can I call FeatureActivated method from FeatureInstalled?
I have a module in feature and it will adding the ...
1
vote
1
answer
566
views
Problem to modify web.config in runtime
I'm trying to modify the web.config file when the feature is activated with the code below:
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
SPWebApplication webApp ...
1
vote
1
answer
425
views
Feature activation terminated if code is running too long (SP 2010)
Is it possible that feature activation will fail or will end unexpectedly (without any exceptions in ULS) when it takes too long for code to finish the job?
We have a feature which during activation ...
0
votes
1
answer
252
views
Edit default Pagelayout on feature activation
My site is in SharePoint 2010.
I want to edit the content of PageFromDocLayout.aspx default page layout on feature activation. My feature is on site collection level.
I want to change the ...
0
votes
1
answer
377
views
Unable to see timer job
I have created a custom timer job, which contains a feature. I have successfully activated the feature on my web application, but it does not show up under the job definitions.
Feature.xml is as ...
0
votes
0
answers
136
views
Getting wrong PageLayouts from site with variations
I have a site in 2013 with two variations: de-de and en-us.
On feature activation, I try to get list of Available Page Layouts using following code:
using (SPSite site = new SPSite(siteUrl))
...
0
votes
1
answer
587
views
Unable to activate Feature in sharepoint 2010
I created a timer job which will send a mail to all the user.It was working fine in dev server.So ,I change the "SITE URL" in SOLUTION properties to prod server url(http://*_prod) and added solution ...
0
votes
2
answers
421
views
Creating sub site in feature receiver does not work always in sandbox solution
I have created a sandbox solution in which there is one feature for creating two sub-sites. In the event receiver of that feature I have created two sites programmatically.
The code is as per ...
0
votes
1
answer
875
views
Activating web feature from event receiver doesn't do anything
I have the following code that should run to automatically disable the Minimal Download Strategy feature when a new site is being provisioned. Unfortunately nothing happens. No errors are captured in ...
2
votes
1
answer
318
views
Feature Activation Routing Workflows - SharePoint 2010 (en-US)
We get an error message: "the feature with the ID {3bc0c1e1-b7d5-4e82-afd7-9f7e59b60409} must be activated."
Does somebody know how to activate this feature. I can't find it in central administration ...
1
vote
1
answer
77
views
Site Feature needs to be re-enabled after creation from template?
I have a Site Template which includes the SP List Item Copy Feature. This Feature was enabled on the site when I created the template.
My issue is that whenever I create a new site with this template,...
3
votes
2
answers
2k
views
Any downsides to feature property "Always Force Install"?
Occasionally on our deployments, we would get this error
Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been installed in this farm. Use the force attribute ...
1
vote
1
answer
89
views
Which is good practice to not activate the feature by default?
I have read about:-
Active Deployment Configuration : No Activation
Feature --> Activate on Default : False
What is the difference?
2
votes
2
answers
1k
views
Difference between enabling feature from PowerShell and activating it via site collection features page?
I am trying to create a SharePoint list based on a list template via a feature. The code for creating the list is in the FeatureActivated event handler of the feature's EventReceiver.cs file. The list ...
3
votes
1
answer
9k
views
PowerShell code to add/remove, install/uninstall and enable/deactivate feature at Web, Site Collection, Web Application and Farm scope
Please can you give me the best practice PowerShell code to:-
A. Add, install and enable feature at
-Web
-Site Collection
-Web Application
-Farm scope
B. Deactivate, Uninstall and Remove ...
0
votes
1
answer
133
views
Why SharePoint can't activate a dependency feature, while upgrading a feature?
This question is regarding dependency feature activation, while upgrading a feature to latest version.
Suppose, There is a feature called MasterFeature_0_0_0_0 and it is being upgraded to ...
0
votes
1
answer
348
views
Styling a 2010 publishing site using a feature - Not enough information to determine a list for module
I've got a site collection which currently only has one web site (the root web). The styling comes in a Site level feature with a few modules to deploy the master page, the CSS, and other resources, ...
2
votes
3
answers
4k
views
Error when deploying SharePoint feature: The specified list does not exists
I'm using SharePoint 2010 Foundation and Visual Studio 2010 Ultimate. I'm working on a Web Parts with two features:
Feature1 - My Web Parts
Feature2 - Contains two Visual Studio module with CSS and ...
1
vote
1
answer
1k
views
Programatically publishing Content Type in Content type Hub
I have a custom content type which I am deploying to a Site collection in which content type hub is configured.
To use the content types in different site collection after the content type is deployed ...
0
votes
1
answer
267
views
Hide all site templates except custom and also show templates which are added after feature activation
We want to remove all site templates except custom templates under Create > 'Sites and Workspaces'. and we only want to allow custom templates... Custom template can grow over the time by saving site ...
0
votes
1
answer
59
views
Inheritance of Content Types in a Single Feature
I am having the same issue as seen in https://stackoverflow.com/q/9699451/240372 yet the solution does not work for me.
The ID's for my Content Types are the following
A ...
2
votes
1
answer
951
views
Deleting lists upon feature deactivation
I have a FeatureReceiver class for a feature that deploy a couple of list instances. In the FeatureDeactivating event I want to remove those instances as well as other artifacts which get deployed ...
0
votes
2
answers
348
views
SP2010 Activate feature Throws an error
I'm using the code below to modify Custom List Permission in SharePoint 2010. What I'm trying to do is to modify All Group's Permission Level to Read except for the Owners Group. My code runs fine ...
0
votes
1
answer
1k
views
ListDefinition and ListInstance failures with custom content type
In VisualStudio 2012 I have a custom content type that I want to use in a ListInstance. When I create a ListDefinition or ListInstance using VisualStudio and add my ContentType I get feature ...
3
votes
1
answer
3k
views
Provisioning did not succeed. Failed to create pages library
I have a client who are trying to create new sub sites in site collections. If they use the publishing site template or if they create a team site and try activate the publishing feature it will ...
2
votes
2
answers
2k
views
PowerShell Script To Find Where SharePoint 2010 Features Are Activated
I want a PowerShell script to find where Features are activated in a site collection and its sites/subsites
Like for example feature "Enterprise feature"
4
votes
1
answer
1k
views
Farm scope Event Receiver
For some security reasons on one of our farm level solutions, we need to limit some actions using Event Receiver-FileMoving event. However, as known, event receivers can be deployed only by Site or ...
1
vote
1
answer
1k
views
Cannot activate SharePoint Publishing Feature
despite placing the following code in my onet.xml, the publishing feature is not activated.
<Feature ID="A392DA98-270B-4e85-9769-04C0FDE267AA">
<!-- PublishingPrerequisites -->
</...
1
vote
2
answers
742
views
What user data or customizations will I lose if I deactivate and reactivate a site collection feature
I am having problems with my embedded SSRS reports (print button missing) and it claims that my Report Viewer web part is not configured correctly, or something along those lines. I was thinking of ...
2
votes
1
answer
2k
views
"The system cannot find the file specified" message while deploying new feature
I'm trying to deploy a new feature on sharepoint 2010 with scope web.
The deploy seems to run successfully, but the feature is not prensent in feature manager.
While visual Studio deploys the ...
0
votes
0
answers
72
views
Creating a feature however manifest does not contain GUID ID
Currently I am creating four custom features within a visual studio sharepoint 2010 project. Within the manifest there is no ID generated once the feature has been created for two of the features. All ...
2
votes
2
answers
1k
views
Help with deploying a feature to Web Application level
I have a SharePoint 2013 solution project (built in VS2013) that contains a feature set to WebApplication level with an event receiver that has no code at all (just for testing purposes).
When I set ...
1
vote
0
answers
955
views
Try to activate a web site feature. Error: Failed to create feature receiver object from assembly
I am using sharepoint 2007. I have created some custom solution in visual studio 2008. In this solution there is an event receiver "FeatureActivated". I have deployed this wsp to my sharepoint ...
2
votes
3
answers
523
views
SharePoint TimerJob not executing
I have a TimerJob in my feature that is not executing.
I've tried restarting the timer service (below), deactivating and activating the feature, and manually executing the job using the "run now" ...
1
vote
1
answer
210
views
FeatureActivated() not binding two SPEventReceiverDefinitions
I have a feature which I have placed in the onet.xml in to make it active whenever the site collection is created. The feature contains two event receiver definitions for permission groups. One is for ...
2
votes
1
answer
529
views
Deployment Issue with Custom FIeld Types
SHORT DESCRIPTION
Custom Field Types are not being correctly deployed/activated on all but one Virtual Machine.
I have several VMs with identical SharePoint environments.
I have a Visual Studio ...
0
votes
1
answer
9k
views
Deploy a single feature using SharePoint Management Shell with SharePoint 2013
I have been working in a development environment and deploying my custom web part features from Visual Studio directly by just hitting F5. I now need a way to deploy features separately to a test ...
1
vote
1
answer
576
views
How do you indicate a Web Application vs Site Collection in for the -url parameter in PowerShell?
When I run the code script below:
enable-spfeature "MyFeature" –url "http://myportal:5555"
I get the error:
This feature is not a farm level feature and is not found in a Site
level defined by ...
2
votes
4
answers
6k
views
Set the JSLink property for all list forms in FeatureActivated
Is it possible to update the SPForm.JSLink property for the forms (Display, New, Edit) of an existing list in the when a feature is activated?
I have tried the code below, but it seems that the ...
0
votes
2
answers
6k
views
Error occurred in deployment step 'Activate Features' while trying to deploy an event receiver?
I cant seem to figure out what the issue is while I try to deploy my event receiver targeted at a particular list on my site.
All I am trying to do in the event receiver is to check (on itemUpdating)...
1
vote
2
answers
14k
views
Feature with Id 'guid' is not installed in this farm, and cannot be added to this scope
I have a WinForms project that acts as a Sharepoint 2013 Solution installer. It basically do some checking, create a sql database, adds and install a SP Solution and finally activates the feature.
...