Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

column does not exist sharepoint 2010 even with internal name - sharepoint 2010

$
0
0

Dear All,

My list item is not identifying in the code, please note my code below.

tried to put the internal column name and actual column name, still i am getting error

is there any mistake in finding internal name

Full error dialog:

Column 'Card' does not exist. It may have been deleted by another user.  




                SP.List oList = clientContext.Web.Lists.GetByTitle("SampleListCard");
                CamlQuery camlQuery = new CamlQuery();
                //ListItem oListItem = oList.Items.GetById(3);

               
                ListItemCollection lItems = registration.GetItems(new CamlQuery());
                clientContext.Load(lItems, items => items.Include(i => i["X%5Fx002d%5FMas%5Fx0020%5FCard"], i => i["Prev_Yr_Card_Cal"], i => i["Prev_Yr_Card"]));

                //clientContext.Load(lItems, items => items.Include(i => i["Card"], i => i["Prev_Yr_Card_Cal"], i => i["Prev_Yr_Card"]));
                clientContext.ExecuteQuery();


column edit browser link, tried to find the internal name from query string.

//http://localhost/_layouts/FldEdit.aspx?List=%7B03A9027F%2DE882%2D4B19%2D8AA3%2DE9B80ED426F9%7D&Field=X%5Fx002d%5FMas%5Fx0020%5FCard

somebody please help


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>