pnp / pnp/pnpframework

CreateSiteAsync is not creating Modern Team Site collection and throws exeception.

Open
#965 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

VS 2022
Azure Function v4
.Net 6.0
PnP.Framework" Version="1.14.0"

Using Sharepoint username and secure password to do the authentication.
AuthenticationManager auth = new AuthenticationManager(SPAdminUserName, securePassword);

TeamSiteCollectionCreationInformation modernteamSiteInfo = new TeamSiteCollectionCreationInformation
{
Alias = "TestSite",
DisplayName = "TestSite",
Description = "TestSiteDesc",
Owners = ownersList,
IsPublic = true,
Classification = "General"
};

var createModernSite = await context.CreateSiteAsync(modernteamSiteInfo);

CreateSiteAsync is failing to provision the site and instead it throws below exception:
System.data.services.client.DataserviceRequestException. "An error occurred while processing this request"

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 reproducing the failure with the shown VS 2022, Azure Functions v4, .NET 6.0, PnP.Framework 1.14.0 configuration and the CreateSiteAsync call. Inspect the resulting DataServiceRequestException and the site-provisioning request; done means the modern team site is created successfully without that exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.