May 12 2021 11:14 PM
Hi, I have on-premise SharePoint 2019 and MS Sql Server 2019.
I use CSOM to set actual work for resources.
public TimePhase getResourceTimePhaseAssignments(EnterpriseResource resource, DateTime startDate, DateTime finishDate)
{
TimePhase currentTimePhase = resource.Assignments.GetTimePhase(startDate, finishDate);
projContext.Load(currentTimePhase.Assignments);
projContext.ExecuteQuery();
return currentTimePhase;
}
Running this code I get exception: Too many resources: 1073. You cannot load dependent objects for more than 1000 resources. Use a filter to restrict your query.
I found several unanswered threads related to this issue:
1)
2)
I didn't find any decision for my case.
Is there an ability to change limit of 1000 resources somewhere on the server side?
Am I able to filter my request somehow?
Any help would be appreciated.