pnp / pnp/sp-dev-fx-controls-react

DynamicForm DocumentSet issue

Open
#1,957 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

Hi Guys,

I am using a DynamicForm for a custom content type, which is based on a document set. The library has more than 5000 folders and when I am trying to add a new item I receive an error: Error making HttpClient request in queryable [500] ::> {"odata.error":{"code":"-2147024860, Microsoft.SharePoint.SPQueryThrottledException","message":{"lang":"en-US","value":"The attempted operation is prohibited because it exceeds the list view threshold."}}}

How can I fix this? Seems like the error happens in the addSubFolderUsingPath function.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by inspecting the addSubFolderUsingPath function mentioned in the report and trace the query it makes for a document-set DynamicForm. Reproduce the failure with a list containing more than 5,000 folders and determine what behavior is needed to avoid the SharePoint list-view-threshold error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
api, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.