Error: "Custom tool error: Failed to generate code"
118512Nov 3 2005 — edited Jan 21 2006Environment: VS.NET 2003, ODT v10.2.0.1.0, DB: 9.2.0.3
Tables:
CREATE TABLE D1 ( DATE1 DATE );
CREATE TABLE D2 ( DATE1 DATE NOT NULL );
CREATE TABLE D3 ( DATE1 DATE NOT NULL PRIMARY KEY );
Added new Web Form, dragged & dropped my table from the Oracle Server onto the web form. Then attempted to Generate DataSet.
When I tried with table D1, got warning about for Update & Delete commands for No Key Info, but it completed.
When I tried with table D2, got same warning, then it generated the error (see below).
When I tried with table D3, no warning, but same error:
ERROR:
"Custom tool error: Failed to generate code. Invalid Primitive Type: System.DateTime. Only CLS compliant primitive types can be used. Consider using CodeObjectCreateExpression."
Why do I get this error for mandatory date fields? How can I eliminate this error?
TIA (from a VS.NET/ODP/ODT Newbie) for any help!