Hi,
I keep getting the following error:
************** Start **************
System.Reflection.TargetInvocationException: Property accessor CompanyName
on object
CRMDataSet+Customer
sRow threw the following exception:Cannot get value because it is
DBNull. ---> System.Data.StrongTypingException: Cannot get value because it
is DBNull. ---> System.InvalidCastException: Cast from type DBNull to type
String is not valid.
at Microsoft.VisualBasic.CompilerServices.StringType.FromObject(Object
Value)
at
CustomersRow.get_CompanyName() in CRMDataSet.vb:line 1002
at
CustomersRow.get_CompanyName() in CRMDataSet.vb:line 1004
************** End **************
The column in question is allowed to have NULL values, and the records its crashing on has NULL values in the CompanyName column.
Ive tried re-generating the Customers section of the schema but nothing seems to work. The columns .AllowDBNull is True, so that shouldnt be an issue.
Can someone please explain whats going on!!
I keep getting the following error:
************** Start **************
System.Reflection.TargetInvocationException: Property accessor CompanyName
on object
CRMDataSet+Customer
sRow threw the following exception:Cannot get value because it is
DBNull. ---> System.Data.StrongTypingException: Cannot get value because it
is DBNull. ---> System.InvalidCastException: Cast from type DBNull to type
String is not valid.
at Microsoft.VisualBasic.CompilerServices.StringType.FromObject(Object
Value)
at
CustomersRow.get_CompanyName() in CRMDataSet.vb:line 1002
at
CustomersRow.get_CompanyName() in CRMDataSet.vb:line 1004
************** End **************
The column in question is allowed to have NULL values, and the records its crashing on has NULL values in the CompanyName column.
Ive tried re-generating the Customers section of the schema but nothing seems to work. The columns .AllowDBNull is True, so that shouldnt be an issue.
Can someone please explain whats going on!!