I'm finding that no matter which web part I try to add, only one of the preconfigured entries is ever added to a page.
Have I done something wrong in my web part manifest.json file, or does having multiple preconfigured entries simply not work as designed on SharePoint Server 2016 pages?
Background
I created a SharePoint Framework web part for displaying charts from SharePoint lists and successfully deployed it and used it on SharePoint Server 2016 (on-premises) on classic publishing and wiki pages.
The web part has a lot of configurable properties, so I thought as a next step I could improve the experience by using multiple preconfigured entries so people could set up different types of charts (pie, bar, line, etc) with a single click.
Preconfigured Entries Work as Expected from Workbench
I added the multiple preconfigured entries and they all work great from the workbench.
Preconfigured Entries Don't Work on Actual Pages
However, after deploying my app in the app catalog, whenever I try to add any of the preconfigured web parts to a page, only the first preconfigured entry (first based on their alphabetical order) is added to the page.
In my case, it always adds a Horizontal Bar Chart instead of a Line Chart, Pie Chart, Vertical Bar Chart, or whatever.
Has anyone else run into this behavior? Are there any workarounds?
My preconfiguredEntries JSON for reference
Here's my preconfiguredEntries JSON from the manifest
"preconfiguredEntries": [
{
"groupId": "1e95b737-7aeb-459a-8b74-ff30335ea553",
"group": { "default": "Charts from SharePoint Lists" },
"title": { "default": "Pie Chart" },
"description": { "default": "Web part for displaying charts using data from SharePoint lists" },
"officeFabricIconFontName": "PieDouble",
"properties": {
"chartType": "Pie",
"options":"{\"labelDirection\":\"explode\",\"labelPosition\":\"outside\"}"
}
},
{
"groupId": "1e95b737-7aeb-459a-8b74-ff30335ea553",
"group": { "default": "Charts from SharePoint Lists" },
"title": { "default": "Line Chart" },
"description": { "default": "Web part for displaying charts using data from SharePoint lists" },
"officeFabricIconFontName": "LineChart",
"properties": {
"chartType": "Line",
"options":"{\"lineSmooth\":true,\"low\":0,\"showArea\":false,\"showPoint\":false,\"axisY\":{\"onlyInteger\":true}}"
}
},
{
"groupId": "1e95b737-7aeb-459a-8b74-ff30335ea553",
"group": { "default": "Charts from SharePoint Lists" },
"title": { "default": "Horizontal Bar Chart" },
"description": { "default": "Web part for displaying charts using data from SharePoint lists" },
"officeFabricIconFontName": "BarChartHorizontal",
"properties": {
"chartType": "Bar",
"options":"{\"horizontalBars\":true,\"low\":0,\"reverseData\":true,\"seriesBarDistance\":15,\"stackBars\":false,\"chartPadding\":{\"left\":30,\"right\":0}}"
}
},
{
"groupId": "1e95b737-7aeb-459a-8b74-ff30335ea553",
"group": { "default": "Charts from SharePoint Lists" },
"title": { "default": "Vertical Bar Chart" },
"description": { "default": "Web part for displaying charts using data from SharePoint lists" },
"officeFabricIconFontName": "BarChartVertical",
"properties": {
"chartType": "Bar",
"options":"{\"horizontalBars\":false,\"low\":0,\"reverseData\":false,\"seriesBarDistance\":15,\"stackBars\":false}"
}
},
{
"groupId": "1e95b737-7aeb-459a-8b74-ff30335ea553",
"group": { "default": "Charts from SharePoint Lists" },
"title": { "default": "Stacked Bar Chart" },
"description": { "default": "Web part for displaying charts using data from SharePoint lists" },
"officeFabricIconFontName": "StackedBarChart",
"properties": {
"chartType": "Bar",
"options":"{\"stackBars\":true,\"fullWidth\":true,\"low\":0,\"axisY\":{\"onlyInteger\":true},\"reverseData\":false}"
}
},
{
"groupId": "1e95b737-7aeb-459a-8b74-ff30335ea553",
"group": { "default": "Charts from SharePoint Lists" },
"title": { "default": "Multiseries Line Chart" },
"description": { "default": "Web part for displaying charts using data from SharePoint lists" },
"officeFabricIconFontName": "StackedLineChart",
"properties": {
"chartType": "Line",
"options":"{\"lineSmooth\":true,\"fullWidth\":true,\"showPoint\":false,\"showArea\":true,\"low\":0,\"axisY\":{\"onlyInteger\":true},\"reverseData\":false}"
}
}
]
Note: I've duplicated the issue on both the November 2019 patch and the January 2020 patch of SharePoint Server 2016.
Edit: Looks like this was reported as a problem in May of 2017 and according to a comment on GitHub, a fix was planned for June of 2017. But the issue was closed automatically due to inactivity. Does anyone know if this was ever actually fixed?