Showing posts with label LINQ. Show all posts
Showing posts with label LINQ. Show all posts

Tuesday, June 22, 2010

Columns associated with mappings have been deleted/renamed

I was working on a project where we are using the new linq with sharepoint 2010 , and I have received this error:

Message: Columns associated with mappings have been deleted/renamed.
Source : Microsoft.SharePoint.Linq
Target site : Void ValidateMapping()
Stack trace :
at Microsoft.SharePoint.Linq.EntityTracker.ValidateMapping()
at Microsoft.SharePoint.Linq.EntityTracker.SubmitChanges(ConflictMode failureMode, Boolean systemUpdate)
at Microsoft.SharePoint.Linq.DataContext.SubmitChanges(ConflictMode failureMode, Boolean systemUpdate)
at Microsoft.SharePoint.Linq.DataContext.SubmitChanges()
at MyNameSpace.MethodName()


And I did not find any article talking about this error: "Columns associated with mappings have been deleted/renamed" when searching on google.

After re-generating the class using the SPMetal command and receiving the same error, I found that the submitted list name is for another list. so just to share it with you :)