sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Cannot Install SPFx Solution or Activate Custom Feature using a Site Design

Open Ismael-Cruz opened this issue 7 years ago • 6 comments

It is not possible to install an SPFx solution or activate the custom feature that contains the Application Customizers custom actions. Instead, the OOB features are able to be activated. Is there a way at least to access to more traceable information than "Action failed"?

capture


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Ismael-Cruz avatar Mar 05 '19 14:03 Ismael-Cruz

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Mar 05 '19 14:03 msft-github-bot

Can you provide your Site Script to review? Deploying an Application Customizer is possible with Site Scripts.

bcameron1231 avatar Mar 05 '19 14:03 bcameron1231

{ "$schema": "schema.json", "actions": [ { "verb": "installSolution", "id": "de5b5cce-0a0c-40b2-820c-1569ba81e9d0", "name": "MY_SOLUTION" }, { "verb": "activateSPFeature", "featureId": "15a572c6-e545-4d32-897a-bab6f5846e18" }, { "verb": "activateSPFeature", "featureId": "4cd826ba-70fd-4e81-9149-d6edc243e4b0" }, { "verb": "applyTheme", "themeName": "MY_THEME" } ], "bindata": { }, "version": 1 }

Our solution contains both webparts and extensions, that is why we use the installSolution action, that already includes both (so no need to do the associateExtension action). We tried with and without the name in the installSolution, since it has been included in the latest schema: https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json

And in our package-solution we have the feature for the application customizer that has the custom actions:

"features": [ { "title": "Application Extension - Deployment of custom action.", "description": "Deploys a custom action with ClientSideComponentId association", "id": "4cd826ba-70fd-4e81-9149-d6edc243e4be", "version": "1.0.0.0", "assets": { "elementManifests": [ "elements.xml" ] } } ]

Ismael-Cruz avatar Mar 06 '19 09:03 Ismael-Cruz

@qazqwertish if you're still experiencing this issue, please raise a support ticket so we can look into this issue. Improving error reporting is in our backlog.

melitoSP avatar Jul 16 '19 00:07 melitoSP

I confirm that we experience the same same issue:

Site Design JSON:

{
    "$schema": "schema.json",
    "actions": [
        {
            "verb": "installSolution",
            "id": "{AppPackageId:ContosoCentral}"
        }        
    ],
    "version": 1
  }

image

Zerg00s avatar Jul 24 '19 02:07 Zerg00s

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 25 '20 00:01 msft-github-bot