Jun 19 2018 05:42 AM - edited Jun 19 2018 05:43 AM
Hi all,
We are having some problems with 2 SPFx Extensions we have deployed to a customer tenant. Both of them are properly deployed to the App Catalog (Site Collection Catalog), but they are not showing and when we try to debug them, the Extensions code is not being reached. We have also created a dummy extension and it’s not shown at customer tenant once we deploy there.
Those 2 extensions are properly deployed in two other different tenants so we don’t have a clue of what the problem could be in the customer tenant.
I would appreciate any tip aimed to know what could be happening here.
Jun 19 2018 06:05 AM
Would double check things
Share the exception details from the browser console (F12) after above steps.
Jun 19 2018 07:10 AM
Hi Vesa,
Some more details about those extensions:
{ "$schema": "https://dev.office.com/json-schemas/spfx-build/package-solution.schema.json", "solution": { "name": "process-extensions", "id": "4951855a-f6ae-443f-9936-41a5cbb2cd2e", "version": "1.0.0.1", "includeClientSideAssets": true, "features": [ { "title": "Application Extension - Deployment of custom action.", "description": "Deploys a custom action with ClientSideComponentId association", "id": "37ea889e-3bcc-464b-a297-8f20f6410c3e", "version": "1.0.0.1", "assets": { "elementManifests": [ "elements.xml" ] } } ] }, "paths": { "zippedPackage": "solution/process-extensions.sppkg" } }
Also for your reference, the elements.xml file is the following one:
<?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Title="AddFlat" RegistrationId="101" RegistrationType="List" Location="ClientSideExtension.ListViewCommandSet.CommandBar" ClientSideComponentId="8bfb46e3-dff8-4b50-a107-9ccb9a4c964b" ClientSideComponentProperties="{"sampleTextOne":"One item is selected in the list.", "sampleTextTwo":"This command is always visible."}"> </CustomAction> </Elements>
What we are going to do is create another public CDN for the extensions so we can apply the troubleshooting steps.
If you see something wrong in the points above, please let me know.
Thanks!
Jun 19 2018 07:17 AM
If web parts are working properly in the same tenant using Office 365 Public CDN, then the issue is not on the CDN side... If you also do NOT see any exceptions in the console of the browser, then that means that the extension is not even loaded, which seems to reference then to a misconfiguration of the registration.
Based on your message, you have double checked the user custom action on the site level but would double check that as well. You should not have this registration in the site collection level, if you register the entry to the site using elements.xml file as that's executed in the site scope... which seem to indicate that something is wrong in your site collection.
Jun 19 2018 07:24 AM
Jun 19 2018 07:28 AM
Thanks - Problem here is that even though you'd share me the pics, there's nothing we could start even investigating as if there are no exceptions, there's nothing we can analyze on the farm level, which is far from optimal as we are absolutely curious on understanding what goes wrong and why.
If possible - would test the tenant also with other extension types to see if they work and if this only for list view command sets, hoping that we would get an exception - as with exceptions - there's correlation ID and with that, we can investigate what's causing issues.
Jun 19 2018 07:30 AM
The screenshots:
Jun 19 2018 07:31 AM
Jun 19 2018 07:34 AM
Why is there two features in the package? - Have you checked the configuration of the action in the API level?
Jun 19 2018 07:39 AM
Jun 19 2018 08:05 AM
Suggesting on checking the UserCustomAction information from Web object, for example, using PnP PowerShell to 100% confirm what you have as a definition created in the object layer after the feature has been activated. This will rule out any issues on the feature xml association.
May 18 2022 09:23 AM
Hello!
Please Follow below two steps to do that:
{ "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json", "solution": { "name": "helloword-app-customizer-client-side-solution", "id": "c60ebbe7-9313-4200-b9fb-a1198e6e0d20", "version": "1.0.0.0", "includeClientSideAssets": true, "skipFeatureDeployment": true, "isDomainIsolated": false, "features": [ { "title": "Application Extension - Deployment of custom action.", "description": "Deploys a custom action with ClientSideComponentId association", "id": "ca10eae0-ed55-400b-8ead-9d5940ed91a7", "version": "1.0.0.0", "assets": { "elementManifests": [ "element.xml" ] } } ] }, "paths": { "zippedPackage": "solution/helloword-app-customizer.sppkg" } }