Document library custom column missing
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
π₯ SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
- [ ] π₯ Internet Explorer
- [ ] π₯ Microsoft Edge
- [ ] π₯ Google Chrome
- [ ] π₯ FireFox
- [ ] π₯ Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [ ] not applicable
- [ ] other (enter in the "Additional environment details" area below)
Additional environment details
- browser version
- SPFx version
- Node.js version
- etc
Issue description
We have both English and Norwegian tenants. In the English sites, provisioning works as expected: all lists, libraries, and custom fields are created correctly. In the Norwegian sites, during site provisioning the default Delte dokumenter library is missing some of the custom columns.
All required fields are declared in our JSON, and the site design is generated correctly. When the site design is applied, all lists, libraries, and fields are created as expected β except the Delte dokumenter library, which does not include the custom fields.
The issue started occurring after mid-August.
Hello @ReethuVarghese, Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.
@ReethuVarghese, I attempted to reproduce the "Document library custom column missing" issue using a minimal site script. Hereβs what I did:
Created a site script that adds a custom column (TestCustomColumn) to the "Shared Documents" library. Applied the site design to both English and Norwegian sites. The site design reported "Success" for both the library and the column creation. However, the custom column does not appear in the "Shared Documents" library on either site. It appears that site scripts cannot add columns to an existing default document library if it already exists, even though the outcome says "Success."
Could you please provide the exact steps and scripts you used to provision the sites and add the custom columns? This will help me accurately reproduce the issue and assist further.
Thank you!
Hi, @Ashlesha-MSFT
This is my sample JSON file. The fields DocumentCategoryText, Approver, and ProjectApprovedDate are custom fields.
I created the site script and site design from this JSON, then applied the site design ID to our sites. However, these custom fields are not being created in the default Dokumenter library.
This was working earlier, and it is one of the document library fields.
@ReethuVarghese, We were able to reproduce the issue, and we are investigating it. We have logged this as a bug, and our engineering team will look into it. Thanks!
Hi @Ashlesha-MSFT , Any updates on this issue?
@ReethuVarghese, There are no updates at this time. We will let you know as soon as we receive any information.