question

HResa-8694 avatar image
0 Votes"
HResa-8694 asked HResa-8694 answered

Enable-SPFeature: The specified method is not supported.

At our SP 2019 (on Premises) Environment, I have to enable some Features to enable the Document-ID Feature.

On all out published Website-Collections, one Feature ca be enabled with the Powershell-Command
"Enable-SPFeature -identity f6924d36-2fa8-4f0b-b16d-06b7250180fa -url .....", only at one WSC, I get the Error-Message:

 Enable-SPFeature -identity f6924d36-2fa8-4f0b-b16d-06b7250180fa -url https://anwendung.dom.bv/sites/Communication
 Enable-SPFeature: The specified method is not supported.
 In line: 1 character: 1
 + Enable-SPFeature -identity f6924d36-2fa8-4f0b-b16d-06b7250180fa -url ...
 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo: InvalidData: (Microsoft.Share ... etEnableFeature: SPCmdletEnableFeature) [Enable-SPFeature
     ], NotSupportedException
      + FullyQualifiedErrorId: Microsoft.SharePoint.PowerShell.SPCmdletEnableFeature 

an the Result ist:

 $web = Get-SPWebApplication -Identity "https://anwendung.com.bv/"
 Foreach($site in $web.Sites)
 {
 $feature = Get-SPFeature -Site $site | Where-Object {$_.ID -eq "f6924d36-2fa8-4f0b-b16d-06b7250180fa"
 }
     if($feature -ne $null)
     {
       Write-Host $site.RootWeb.Url " - Activated"
     }
     if($feature -eq $null)
     {
       Write-Host $site.RootWeb.Url " - Deactivated"
     }
 }

 https://anwendung.com.bv  - Activated
 https://anwendung.com.bv/sites/Allgemein_Test  - Activated
 https://anwendung.com.bv/sites/Communication  - Deactivated
 https://anwendung.com.bv/sites/ContentTypeHub  - Activated
 https://anwendung.com.bv/sites/Muster  - Activated
 https://anwendung.com.bv/sites/Test  - Activated
 https://anwendung.com.bv/sites/Testfall  - Activated

How ca I Enable the two Feature, I need?
f6924d36-2fa8-4f0b-b16d-06b7250180fa
and
22a9ef51-737b-4ff2-9346-694633fe4416
(The second one can't be activated as long as the first is noch activated.)




windows-server-2019
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

I would like to check if the reply could be of help? If yes, please help accept answer, so that others meet a similar issue can find useful information quickly. If you have any other concerns or questions, please feel free to feedback.

Best Regards,
Joan

0 Votes 0 ·
jiayaozhu-MSFT avatar image
0 Votes"
jiayaozhu-MSFT answered

Hi,

Thanks for your reply!

Based on your description, would you please go to your ULS logs on the server located at C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS (unless someone moved them)? Each log file is generated every half hour. Look for the file that is time stamped just after the error occurred. Then search that file for Correlation ID: 1c28b79c-b0a9-9097-0000-0ba92a1a9eb4 at 9/10/2014 5:10:53 PM That will give you more info about what's happening. If your issue is specific to one WebSite collection, then we reckon to find more specific information.

I also find a method which can deal with error "Feature Activation: Failed to ensure feature dependencies for feature 'XXXXXXXX'". You can try to put the command in the article below, into Sharepoint Management Shell rather than Powershell:
http://ukreddysharepoint2010.blogspot.com/2014/05/error-systemargumentexception-value.html

Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

Thanks for your support! Feel free to give me feedback!

BR,
Joan


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

jiayaozhu-MSFT avatar image
0 Votes"
jiayaozhu-MSFT answered

Hi,

Thanks for posting on our forum!

Based on your illustrations, it seems that you have customized feature to be enabled, right? And "Invalid data" and "not supported" error message may indicate that there is something wrong with your script or with your feature code. I think you can go to %SystemRoot%\System32\winevt to find if there is any error messages in your relevant logs.

I am still working on your issue!

Thanks for your understanding!

BR,
Joan


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HResa-8694 avatar image
0 Votes"
HResa-8694 answered

Hello,
sorry for the Delay.

I've tried to Enable this Feature egain for the Website-Collection and get, for this Website-Collection, this Error (some Text is in German)


 Feature Activation: Failed to ensure feature dependencies for feature 'PublishingSite' (id: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa'), exception thrown: System.NotSupportedException: Die angegebene Methode wird nicht unterstützt.     bei Microsoft.SharePoint.Publishing.PublishingPrerequisitesFeatureHandler.EnsureSitePagePublishingFeatureNotActivated(SPSite currentSite)     bei Microsoft.SharePoint.Publishing.PublishingPrerequisitesFeatureHandler.FeatureActivated(SPFeatureReceiverProperties receiverProperties)     bei Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)     bei Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)     bei Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)     bei Microsoft.SharePoint.SPFeatureCollection.CheckSameScopeDependency(SPFeatureDefinition featdefDependant, SPFeatureDependency featdep, SPFeatureDefinition featdefDependency, Boolean fActivateHidden, Boolean fUpgrade, Boolean fForce, Boolean fMarkOnly)     bei Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependency(SPFeatureDefinition featdefDependant, SPFeatureDependency featdep, Boolean fActivateHidden, Boolean fUpgrade, Boolean fForce, Boolean fMarkOnly, FailureReason& errType)     bei Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependencies(SPFeatureDefinition featdef, Boolean fActivateHidden, Boolean fUpgrade, Boolean fForce, Boolean fThrowError, Boolean fMarkOnly, List`1& missingFeatures)     bei Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)


Time: 07/15/2021 09:05:40:88
Server: APPSRV-01
Product: SharePoint Foundation
Category: General
Process: PowerShell.exe (0x2554) Decimal: 9556
Thread (Hex): 0x170C Decimal: 5900
EventID: 8grz
Level: High
Correlation: 8fb2db9f-1234-20f0-a21c-ee01414bd3c7


As I mentioned in my first post, this feature can only not be activated in this one WebStite Collection.
The PowerShell command is a standard command to enable Fetures.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HResa-8694 avatar image
0 Votes"
HResa-8694 answered

Hello,
For Sharepoint-related PowerShell commands I only use the Sharepoint Management Shell ;-)

Within the LOG-Files, on our Systems in the Direktory "C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\LOGS", I can't find the Correlation ID: 1c28b79c-b0a9-9097-0000-0ba92a1a9eb4 on both Application Servers

(we use the Mini-Role Installation, two Webservers, two Application Servers, one Database Cluster MSSQL, each Server is a 2019 System)

The oldest ULS-Log-File ist from July, 2nd, 2021.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

HResa-8694 avatar image
0 Votes"
HResa-8694 answered

Hello,

I tried the -force parameter to enable the feature and this worked.
(Activating this feature in this way goes against my view of a clean system configuration ;-))

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.