<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>CodeTrigger - General - Specified Cast is not valid - Messages</title>
<link>https://www.codetrigger.com/forum/topic12-specified-cast-is-not-valid.aspx</link>
<description>CodeTrigger - General - Specified Cast is not valid - Messages</description>
<language>en-us</language>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>Jitbit AspNetForum</generator>
<pubDate>Sun, 03 Dec 2017 19:27:17 GMT</pubDate>
<lastBuildDate>Sun, 03 Dec 2017 19:27:17 GMT</lastBuildDate>
<item>
<link>https://www.codetrigger.com/forum/topic12-specified-cast-is-not-valid.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[<span style="font-family:Tahoma, " sans="" serif",="" arial">Looks like the problem is the <b><span style="color:#ff0000">'.'</span></b> In your table name. Its not coping very well with that naming convention. If you replace the <b><span style="color:#ff0000">'.' </span></b>to <b><span style="color:#ff0000">'_'</span></b> ie dbo.iso_language_tb then  it works</span><br/><i>edited by migrator on 12/3/2017</i>]]></description>
<pubDate>Sun, 03 Dec 2017 19:27:17 GMT</pubDate>
</item>
<item>
<link>https://www.codetrigger.com/forum/topic12-specified-cast-is-not-valid.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[<span style="font-family:Tahoma, "Sans Serif", Arial">I created a DB with a single table and had the same issue:</span><br/><br/><br/><span style="font-family:Tahoma, "Sans Serif", Arial">CREATE TABLE [dbo].[iso.Language_tb](</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">    [Code] [varchar](5) NOT NULL,</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">    [Documentation] [nvarchar](100) NOT NULL,</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial"> CONSTRAINT [iso.Language.Code_pk] PRIMARY KEY CLUSTERED</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">(</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">    [Code] ASC</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">)</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">)</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">GO</span><br/><br/><br/><span style="font-family:Tahoma, "Sans Serif", Arial">Thanks for your help</span>]]></description>
<pubDate>Sun, 03 Dec 2017 19:26:46 GMT</pubDate>
</item>
<item>
<link>https://www.codetrigger.com/forum/topic12-specified-cast-is-not-valid.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[<span style="font-family:Tahoma, "Sans Serif", Arial">Hi</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">If you could send a schema definition file (zipped) of your database tables we will be happy to look into this in detail.</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">However one thing that might be helpful for you to investigate further:</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">Even when you select only one table which has simple fields, say 2 integer columns, if that table has a relationship (foreign key etc) to other tables, those related tables will also be parsed. So the problem may lie with a table you didnt explicitly select. To verify this, try it on a simple table with no relationships. Then examine the relationships on the original single table you tried previously, i believe this will point you to the table thats actually causing the error.</span><br/><br/><span style="font-family:Tahoma, "Sans Serif", Arial">You can then 'fix' the problematic table by changing the problem field type to a more commonly used suitable field type.</span><br/><span style="font-family:Tahoma, "Sans Serif", Arial">However we would still be interested in knowing the schema definition of the related table that caused the error.</span>]]></description>
<pubDate>Sun, 03 Dec 2017 19:26:15 GMT</pubDate>
</item>
<item>
<link>https://www.codetrigger.com/forum/topic12-specified-cast-is-not-valid.aspx</link>
<title>Message from migrator</title>
<description><![CDATA[<span style="font-family:Tahoma, "Sans Serif", Arial">Hi - I'm trying the program. Tutorial WPF app: At this step: Step 4 - Select Business Objects. Click the Business objects tab. There will be a slight delay while CodeTrigger builds up a Business Domain Model based on your selections so far. After which you will be presented with a list of business objects. ... there is no BO generated and an error: "Specified cast is not valid". I tried even selecting only one single table an I still get this. VS2017 with MS SQL 13.0.4001.0 on localhost. How can I fix this ? Thanks !</span>]]></description>
<pubDate>Sun, 03 Dec 2017 19:25:42 GMT</pubDate>
</item>
</channel>
</rss>
