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:
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?
just fixed the list name, you have to check if a column is changed or the list name is updated.
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!
Thank you! It works!
meerciiii
Post a Comment