Skip to Main Content

Oracle Developer Tools for Visual Studio

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error: "Custom tool error: Failed to generate code"

118512Nov 3 2005 — edited Jan 21 2006
Environment: 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2006
Added on Nov 3 2005
10 comments
2,570 views