This SharePoint CSOM tutorial, we will discuss how to resolve SharePoint List does not exist at site with URL <SiteURL> error while working with SharePoint client object model to insert an item to the SharePoint list.
Recently I was trying to insert an item from an asp.net application to SharePoint online list using C#.net but I got an error as “Microsoft.SharePoint.Client.ServerException:”List ‘EmployeeInformation ‘ does not exist at site with URL “Site URL”. The error looks like below:
Microsoft.sharepoint.client.serverexception: list does not exist
In my case there is a list presented in the SharePoint Online site with a name as “EmployeeInformation” but still it was given the error. Then I realize I have added one extra space in the code after the list name like “EmployeeInformation “, So to resolve the issue I had to remove the space from the list name.
Also, read some SharePoint online csom tutorials:
- SharePoint object model CSOM CAML Query for boolean field in visual studio 2015
- SharePoint content type CSOM examples
- Steps to add items from csv file to SharePoint Online List using PowerShell in CSOM
- Could not load file or assembly ‘Microsoft.AI.Web’ or one of its dependencies. The system cannot find the file specified.
I hope this helps to solve issue Microsoft.sharepoint.client.serverexception: list does not exist Error in SharePoint Online CSOM.
I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site EnjoySharePoint.com
Oh, man, you saved me hours!
Thanks, Zhukov, Even when we were trying it took little to figure out. Small silly mistake, but it might take lots of time sometimes.