Error: Unsupported column type - Empty
notbenjamin
Posts: 22
Hi there
I'm not sure if this is the right forum for this but I'll post it here on the off chance you're able to point me in the right direction.
I'm trying to integrate teamcity into our deployment manager setup. I've added a database project following the tutorials provided by yourselves and I'm using the team city plugin with a SQL Automation license.
The build fails when I run it with the following error message. Are you able to advise why this is occurring? I can't find anything through google fu that has helped!
[09:01:22][Generating creation script] SQL Compare Command Line V10.3.8.406
[09:01:22][Generating creation script] ==============================================================================
[09:01:22][Generating creation script] Copyright ¸ Red Gate Software Ltd 1999-2012
[09:01:22][Generating creation script]
[09:01:23][Generating creation script] Registering data sources
[09:01:43][Generating creation script] Creating mappings
[09:01:43][Generating creation script] Comparing
[09:01:43][Generating creation script]
[09:01:44][Generating creation script] Applying Command Line Items
[09:01:44][Generating creation script]
[09:02:01][Generating creation script] Error: Unsupported column type - Empty
[09:02:03][Generating creation script] ##teamcity[buildStatus status='FAILURE' text='Generating creation script failed with exit code 126']
[09:02:04]sqlCI error occurred: RedGate.SQLCI.Engine.Error: Generating creation script failed with exit code 126[/code]
I'm not sure if this is the right forum for this but I'll post it here on the off chance you're able to point me in the right direction.
I'm trying to integrate teamcity into our deployment manager setup. I've added a database project following the tutorials provided by yourselves and I'm using the team city plugin with a SQL Automation license.
The build fails when I run it with the following error message. Are you able to advise why this is occurring? I can't find anything through google fu that has helped!
[09:01:22][Generating creation script] SQL Compare Command Line V10.3.8.406
[09:01:22][Generating creation script] ==============================================================================
[09:01:22][Generating creation script] Copyright ¸ Red Gate Software Ltd 1999-2012
[09:01:22][Generating creation script]
[09:01:23][Generating creation script] Registering data sources
[09:01:43][Generating creation script] Creating mappings
[09:01:43][Generating creation script] Comparing
[09:01:43][Generating creation script]
[09:01:44][Generating creation script] Applying Command Line Items
[09:01:44][Generating creation script]
[09:02:01][Generating creation script] Error: Unsupported column type - Empty
[09:02:03][Generating creation script] ##teamcity[buildStatus status='FAILURE' text='Generating creation script failed with exit code 126']
[09:02:04]sqlCI error occurred: RedGate.SQLCI.Engine.Error: Generating creation script failed with exit code 126[/code]
Comments
I've just pinged you an email to get a little more information off you to start looking into this.
Thanks!
Redgate Software
Thanks for your email.
I've been doing some more on this today and yesterday - it would appear that its to do with the user defined types in our databases - I'm experiencing a similar issue to the above now when deploying a database through Deployment Manager.
The data type '' does not exist or you do not have permission.
Running the upgrade script manually, I found that the upgrade script has generated the following code to add a user defined table type:
sp_addtype N'FieldValueTableType', '', 'NOT NULL'
Reading up on this, Microsoft suggest that sp_addtype should not be used for creating table types, but CREATE TYPE should be used instead
I have a feeling this may be the issue I've been having all along.
Any ideas on how to fix this?
Is it possible to obtain a copy of the files so I can try to reproduce the problem here?
Redgate Software
Thanks for getting back to me!
Let me know exactly what you need and I'll clear it with my manager
Feel free to reply directly to the support ticket email you should have received if you need to clarify anything.
Redgate Software
Scripting through SSMS gives us the following:
Pulling the file from the Source Control check in gives us this:
If you need anything more please let me know
What version of SQL Source control are you on? Also, if you look in your repo, there is a file in the root called "RedGateDatabaseInfo.xml" - if you open that up in Notepad, what is the "DatabaseVersion" tag set to?
Redgate Software
Database Version set to 10[/i]
10 in the XML file would refer to SQL 2008; is that the version you're using?
Redgate Software
Apologies for the delay in replying on this - I'd been moved onto other projects.
I'm back on this now and am still receiving this error (on two databases now) - both use User Defined Data Types and User Defined Table Types
In answer to your last question - I am using SQL 2008.
To get you back up and running, can you delete the objects from your source control system, and then re-commit them. This should mean they get committed as "CREATE TYPE", which should hopefully not cause any problems.
Let me/us know how this goes.
Did that and it committed into source control as create type so that looks good (haven't tried the second database yet, will do that once I get the first one working)
The integration build on team city is throwing up a new error now tho
1. The package of your database with version number 1.0.1
2. The latest copy of the scripts folder
If you email them to me at david.simner@red-gate.com I'll take a look.
Thanks!
David
I've got the package ready for you - can you confirm what you mean by the scripts folder? Just want to make sure I send you the right thing
Thanks!
By scripts folder I mean whatever the build server checks out from source control.
I've emailed them to you
I'm struggling a little with the second database that has this issue - I can't find any reference to sp_addtype in the packages or source control at all, yet I'm getting the same issue!
Any ideas?
It looks like the issue is fixed in SQL Compare version 10.5.0.378, in that I can no longer reproduce it on that version.
If you upgrade the TeamCity plugin, it will mean you start using the latest version of SQL Compare. You can download it from: http://www.red-gate.com/dynamic/product ... k/download (We now distribute the TeamCity plugin via the SQL Automation Pack, so once you've installed it, you can get to the newest version of the TeamCity plugin in the top-right corner of the "What's included?" page.)
If it's still failing, then send me the snippet, and I'll tell you what files I need to debug that problem...
Still getting it on the second database
The second database is failing at the stage where it generates the creation script, so to debug it I only need a copy of the latest scripts folder (the thing TeamCity is checking out). If you email that across, then I can take a look at why it's not working.
I've emailed it to you
Thanks for your continued help on this one!
We've followed up by email, and our internal reference for a static data table having a user-defined type as one of the fields of its primary key, i.e. the "Error: Unsupported column type - Empty" bug is SC-6650