SharePoint / SharePoint/sp-dev-docs

Issue with flat views in SharePoint Online

Open
#10,171 7 comments 0 reactions 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since Mar 28, 2025.

sharepoint-developer-support type:bug-confirmed
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

There are 2 problems:

https://github.com/user-attachments/assets/8c63186a-ff98-441c-b042-be8ab174a3f3

1. Problem with column formatting (setValue)

Description

I use folders within a SharePoint list to organize list items. Additionally, I apply column formatting to update values in a column via button click using customRowAction (setValue). So far, so good…

However, when I switch to a flat view (view without folders), this functionality no longer works, and error messages appear.

Steps to Reproduce

  1. Create a SharePoint list with folders.
  2. Apply column formatting that includes a button with customRowAction: setValue.
  3. Switch to a flat view (view that does not display folders).
  4. Click on any button that triggers the setValue action.
  5. Observe that the action does not work, and an error message appears.

Expected Behavior
• The setValue action should function the same way in flat views as it does in non-flat views.

Observed Behavior
• The functionality fails in flat views, and error messages appear.
• This issue only affects items stored within folders.


2nd Issue: Quick Edit Date Localization

Description

There is another issue when using Quick Edit in a flat view:
• If I set a date field for an item inside a folder, the localization is incorrect.
• Example: Selecting April 1st results in January 4th (German localization).
• This issue only occurs in flat views and only for items inside folders.

Expected Behavior
• The selected date should be saved correctly regardless of whether the item is inside a folder or not.

Observed Behavior
• The date is incorrectly interpreted due to localization issues.
• Items outside of folders or in a non-flat view do not experience this issue.


Additional Info: Adding the ID column does not change anything. The error message is misleading.


Environment
• SharePoint Online
• List with folders
• Flat View (View without folders)

Impact
• Prevents correct use of setValue in flat views.
• Causes incorrect date localization when using Quick Edit in flat views.


I already had a Microsoft support ticket open, but unfortunately, I was informed that Microsoft Support cannot help me. However, this is definitely a SharePoint issue and not something caused by custom development or similar. Only built-in features were used.

I also opened a discussion on the techcommunity page https://techcommunity.microsoft.com/discussions/sharepointdev/issue-with-flat-views-in-sharepoint-online/4397498


Would appreciate any insights or fixes on this! Thanks! 🚀

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.