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 :)

5 comments:

Unknown said...

I have exactly the same error and i cannot understand what your solution was. can you explain it in other words? What did you do to solve this issue?

Osama Mourad said...

just fixed the list name, you have to check if a column is changed or the list name is updated.

Yasser said...

Thanks Osama!
I got the same error and I realized that the error was coming from the list name (as you mentioned).
Normally my ListName was JobVacancy but I found out that SPMetal has createded another one also with the name "JobVacanciesJobVacancy" and I had to use the second one!

Rui Flexa said...

Thank you! It works!

thabet molka said...

meerciiii

How to Install and Use RTSP Simple Server

  How to Install and Use RTSP Simple Server   1.   Create a folder to store the app mkdir /etc/rtsp-server cd /etc/rtsp-server   2.  Downloa...