New UI Document library web part command bar is empty when custom listvew command set is used
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested
- [ ] 💥 Internet Explorer
- [X] 💥 Microsoft Edge
- [X] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [ ] not applicable
- [ ] other (enter in the "Additional environment details" area below)
Additional environment details
Latest SPFx version.
Build version received from "X-MS-Meta-Sourcebuild" header: odsp-web-prod_2025-01-03.009 for document list web part
JS error in dev console:
Uncaught Error: Resource #347 "GetOverrideSpfxCustomActions" is being consumed, but is not available in the current scope.
1) Check to ensure that the dependency on this resource (and each step up the chain) is properly declared.
2) If availability is expected, check to see if the target resource has a dependency that is only available in a child scope.
Required by Resource #693 ""
Required by Resource #348 ""
Describe the bug / error
When you have a SPFx list view command set extension, the command bar for document library web part isn't loaded at all:
Steps to reproduce
- Create a new sample list view command set extension with at least one custom button. Don't change any code, just use the default one generated by yeoman.
- Register command set to a document libraries (
ListTemplateId="101") - Deploy command set globally.
- Add document library web part to a page.
- Command bar for the web part is not loaded.
Expected behavior
The command bar along with custom commands is loaded normally:
I would like to join this suspected bug in that I have a customer with two tenants who also faces this problem. The document library webpart command bar is empty and all the buttons are gone on the page when a custom command is present in the document library
List Web Part is the same situation. All command bar buttons missing.
I have same situation using a custom SPFx ListViewCommandSet Extension.
On list, all native and custom buttons are working as I spected but on page when I use a "Listview webpart", buttons are not appearing in command bar in Microsoft Lists UI and commad bar is empty .
When I disabled my custom ListViewCommandSet on TenantWideExtensions, the command bar works well on list and on page but the problem is when I have a custom ListViewCommandSet applied. Yesterday this custom SPfx was working well
My custom SPfx are on SPfx 1.15.x
Thanks to help with this bug
We have a fix for this and are looking at the best path to roll it out.
Looks like it's fixed.
We also don't have this issue on our tenants anymore. Thank you!
Hello @s-KaiNet, Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.
Hi @Ashlesha-MSFT , the issue was resolved 2 months ago, so you can close it.