In this SharePoint tutorial, We will discuss how to solve the SharePoint column does not exist it may have been deleted by another user error. The error came while trying to add a list column to a list view using the PnP core CSOM library.
Recently, I was creating a provider-hosted add-in for the SharePoint Online site. There, I was trying to create a site column, and then I was trying to add that column to the list view using PnP core SharePoint CSOM library.
The error was not coming while creating the site column, but when I was trying to add that column to a SharePoint list view, it was giving the error that the Column name does not exist. Another user may have deleted it.
I was trying to add a column name as “MyColumn(LB)” to the view. When I was running the code, an error was coming that “MyColumn(LB) does not exist. It may have been deleted by another user“.
You can see the error message in the screenshot below.
Column does not exist. it may have been deleted by another user
The Solution of this above error is: You should remove the braces () from the internal column name. Because it doesn’t support any bracket() with the internal column name. Once you remove the bracket() and again run the code, then it will execute and give the appropriate result.
In this SharePoint PnP tutorial, We discussed the solution of an error as “Column name does not exist. It may have been deleted by another user“
You may also like:
- Add-Type : Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information
- Could not load file or assembly ‘Microsoft.AI.Web’ or one of its dependencies. The system cannot find the file specified.
- After nine attempts there was a problem downloading the following file which is required to continue visual studio
I am Bijay a Microsoft MVP (10 times – My MVP Profile) in SharePoint and have more than 17 years of expertise in SharePoint Online Office 365, SharePoint subscription edition, and SharePoint 2019/2016/2013. Currently working in my own venture TSInfo Technologies a SharePoint development, consulting, and training company. I also run the popular SharePoint website EnjoySharePoint.com