If you could just fix SharePoint... That would be great.

Solving yet another “Microsoft.SharePoint.Client.ServerException: Unknown Error”

This post was most recently updated on February 10th, 2019.

Reading Time: 1 minute.

There’s maybe a thousand things that can throw an “Microsoft.SharePoint.Client.ServerException”, but a bit smaller amount of things, that are ambiguous enough to be called “Unknown error”. This post describes one, fairly usual fix for this issue!

But let’s get back to the beginning for a second – you get what and when now?

When running any code, that provisions new sites (much like https://www.koskila.net/new-pnpsite-fails-with-sitestatus3/), you get an error like this almost immediately:

Microsoft.SharePoint.Client.ServerException: Unknown Error at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream) at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() at ...

What to do?

Solution to “Unknown error”

Okay – this sounds bold. Let’s find a silver-bullet solution to unknown errors, right?

You might be in luck, though – in my experience, most of the times you get this error while provisioning new sites, this is actually just yet another example of the URL being already reserved for a deleted site. And that’s usually easy to fix!

This one’s fairly straightforward to fix. You’ll just have to make sure to either use another URL for your new site, or remove the existing (but deleted) site from the recycle bin.

I’ve written about the topic before, so I’ll just be citing myself. You can check this page below out for instructions on how to fix this issue!

Antti K. Koskela

Antti Koskela is a proud digital native nomadic millenial full stack developer (is that enough funny buzzwords? That's definitely enough funny buzzwords!), who works as a Solutions Architect for Valo Intranet, the product that will make you fall in love with your intranet. Working with the global partner network, he's responsible for the success of Valo deployments happening all around the world.

He's been a developer from 2004 (starting with PHP and Java), and he's been bending and twisting SharePoint into different shapes since MOSS. Nowadays he's not only working on SharePoint, but also on .NET projects, Azure, Office 365 and a lot of other stuff.

This is his personal professional (e.g. professional, but definitely personal) blog.

Leave a Reply

avatar
5000
  Subscribe  
Notify of