Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Incompatible column types. Previous type: Invalid . Current type: Computed.

$
0
0

Hi All,

I am facing one issue while trying to insert item using spmetal generated class. I have one list with two lookup column. Initially it was working, but suddenly it stop working.

code snippet

 for (int x = 0; x < objAuditorCompetency.Count; x++)
                                    {
                                        audComItems.Add(new AuditorCompetencyContentType()
                                        {
                                            //AuditorIDId = Convert.ToInt32(audId.Value),
                                            AuditorIDId = lookupAuditor.Id,
                                            StandardIDId = objAuditorCompetency[x].StandardTypeID,
                                            AuditorCompetency = objAuditorCompetency[x].StandardTypeCategoryIDs
                                        });
                                    }
                                    objAuditorCompetencyList.InsertAllOnSubmit(audComItems);
                                    dtCntx.SubmitChanges();

Thanks


Satyam MCITP, MCPD


Viewing all articles
Browse latest Browse all 11508

Trending Articles



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