This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I'm getting this error when I when I try to run lightspeed to my oracle 10g database thru visual studio 2007. the provider is Oracle9, so I dont know if this makes a difference. Error:
LightSpeedException: Unable to materialize field [OccupationCodeId] on type [WebCms.Model.WageSalary.Wsoccupationque]. Check your table has an Id column and that your mappings are correct. See inner exception for details. ] Mindscape.LightSpeed.LightSpeedException.(Exception , String , Object[] ) +53
|
|
|
Could you post the inner exception please? Also, does this happen only on certain rows, or on all rows? If it only happens on certain rows, could you post examples of the OCCUPATION_CODE value on a good row and on a bad row? Thanks! |
|
|
Hi, I dont get anything for the innerexeception. It is null. Here is what I get at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) It happens when I try to do a count on the count below. var rGridData = DB.Wsoccupationques; if (rgridData.ToList().Count !=0) <===== { RadGridResult.DataSource = rGridData; } When it goes to the if statement rgridData.ToList().Count , it goes here: [ReverseAssociation("WsoccupationquesByEconomicRegion")] and then errors when returns to call. No innerException. just this error: {"Unable to materialize field [OccupationCodeId] on type [WebCms.Model.WageSalary.Wsoccupationque]. Check your table has an Id column and that your mappings are correct. See inner exception for details. "} it has an id column which is int but it seems to die on the foriegn key which is a varchar. thanks, Will
|
|