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

Document library custom column missing

Open ReethuVarghese opened this issue 4 months ago β€’ 6 comments

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.

ReethuVarghese avatar Sep 04 '25 08:09 ReethuVarghese

Hello @ReethuVarghese, Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.

Ashlesha-MSFT avatar Sep 04 '25 09:09 Ashlesha-MSFT

@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!

Ashlesha-MSFT avatar Sep 05 '25 17:09 Ashlesha-MSFT

Hi, @Ashlesha-MSFT

Image

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.

Image

This was working earlier, and it is one of the document library fields.

Image

ReethuVarghese avatar Sep 07 '25 12:09 ReethuVarghese

@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!

Ashlesha-MSFT avatar Sep 08 '25 06:09 Ashlesha-MSFT

Hi @Ashlesha-MSFT , Any updates on this issue?

ReethuVarghese avatar Oct 14 '25 05:10 ReethuVarghese

@ReethuVarghese, There are no updates at this time. We will let you know as soon as we receive any information.

Ashlesha-MSFT avatar Oct 14 '25 12:10 Ashlesha-MSFT