﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Database Deployment Toolkit » Issues  » Deploying a data package for a table with a timestamp column fails.</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 22 Apr 2026 22:29:16 GMT</lastBuildDate><ttl>20</ttl><item><title>Deploying a data package for a table with a timestamp column fails.</title><link>http://forum.strataframe.net/FindPost13440.aspx</link><description>Hi there, &lt;/P&gt;&lt;P&gt;I have seen this problem in another topic, but there was no answer mentioned there. &lt;/P&gt;&lt;P&gt;When trying to deploy a data package for a table with a timestamp column, I get the exception:&lt;/P&gt;&lt;P&gt;SqlException: Cannot insert an explicit value into a timestamp column. User INSERT with a column list to exclude the timestamp column, or insert a DEFAULT into the timestamp column.&lt;/P&gt;&lt;P&gt;It seems like the DDT is trying to copy the timestamp values taken from the original table, while it shouldn't, since timestamps are updated by SQL server.&lt;/P&gt;&lt;P&gt;Did you come up with a solution for that?&lt;/P&gt;&lt;P&gt;Thank you.</description><pubDate>Fri, 18 Jan 2008 07:40:51 GMT</pubDate><dc:creator>George Nentidis</dc:creator></item><item><title>RE: Deploying a data package for a table with a timestamp column fails.</title><link>http://forum.strataframe.net/FindPost13561.aspx</link><description>[quote]It seems that it needs to add the data packages, after creating the foreign key constraints.[/quote]&lt;/P&gt;&lt;P&gt;OK...I see what happened I think.&amp;nbsp; This actually depends on how the data deployment package will package up the data.&amp;nbsp; If you rely on the data package to detect and include all children relationships as well, then yes, I could see how this could happen.&amp;nbsp; If you do not allow the data package to include the children within that deployment data&amp;nbsp;item and you create an individual deployment data item for each of the children, then this may not have happened.&amp;nbsp; I will load you package and look at it to see if there is anything that could have prevented this, but that is probably what happened.</description><pubDate>Fri, 18 Jan 2008 07:40:51 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Deploying a data package for a table with a timestamp column fails.</title><link>http://forum.strataframe.net/FindPost13559.aspx</link><description>Ok, I think I can help you with that too. &lt;/P&gt;&lt;P&gt;Since the error says "PackageDeploymentDataFromSQL" I have removed and created again all data deployment packages, and it works. &lt;/P&gt;&lt;P&gt;It seems that it needs to add the data packages, after creating the foreign key constraints. Data packages first, foreign keys after, and it crushes.</description><pubDate>Fri, 18 Jan 2008 05:46:29 GMT</pubDate><dc:creator>George Nentidis</dc:creator></item><item><title>RE: Deploying a data package for a table with a timestamp column fails.</title><link>http://forum.strataframe.net/FindPost13558.aspx</link><description>Here's an backup of my StrataFrame DB in case you need to reproduce this.</description><pubDate>Fri, 18 Jan 2008 05:09:09 GMT</pubDate><dc:creator>George Nentidis</dc:creator></item><item><title>RE: Deploying a data package for a table with a timestamp column fails.</title><link>http://forum.strataframe.net/FindPost13557.aspx</link><description>Hi again&lt;/P&gt;&lt;P&gt;After doing a lot of work to half-import, half-update-manually the DB in the DDT, when finished, I get an exception when trying to create the package. &lt;/P&gt;&lt;P&gt;Here's the whole story:&lt;/P&gt;&lt;P&gt;1. The first problem with uniqueidentifier key not imported correctly was about user-defined data types. I have removed all user-defined data types, from all tables and stored procedures, and it worked. &lt;/P&gt;&lt;P&gt;2. The&amp;nbsp;second issue was about not imported the indexes correctly. So I have imported the database without the indexes and foreign keys, and manually added all indexes and foreign keys. &lt;/P&gt;&lt;P&gt;Now after all this, I get an exception when trying to create the deployment package. I tryied to modify different values on the foreign keys (which&amp;nbsp;was the only modifications made lately), but still nothing. For this I really need your help.&lt;/P&gt;&lt;P&gt;You can find the error in the attached screenshot.&lt;/P&gt;&lt;P&gt;Thank you</description><pubDate>Fri, 18 Jan 2008 04:51:55 GMT</pubDate><dc:creator>George Nentidis</dc:creator></item><item><title>RE: Deploying a data package for a table with a timestamp column fails.</title><link>http://forum.strataframe.net/FindPost13467.aspx</link><description>[quote]I could sent you a backup of my DB and also my SF DB if you like.[/quote]&lt;/P&gt;&lt;P&gt;I think the info you gave me is enough information; I should be able to reproduce it from this... it certainly points me in the right direction.&amp;nbsp; Thanks.</description><pubDate>Tue, 15 Jan 2008 13:00:21 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Deploying a data package for a table with a timestamp column fails.</title><link>http://forum.strataframe.net/FindPost13456.aspx</link><description>2. I think I can help you more with this: The DB was imported from SQL Sever 2005. The tables that have this problem have the following behavior: They have a primary key declared, but also in the indexes list, they have a unique index with the same name as the primary key index. &lt;/P&gt;&lt;P&gt;For instance when I create the table completely from within DDT the indexes list is:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/a7cc4ba1-4839-4f5e-8c6c-f376.jpg"&gt;&lt;/P&gt;&lt;P&gt;which is correct. But when I import from the DB the indexes is like this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/89f935e3-91a7-4b3b-960e-8e1d.jpg"&gt;&lt;/P&gt;&lt;P&gt;Saving this table's structure will give me the exception. There are some tables that were imported and don't have that problem, and the indexes list is like this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/f1aa767e-2c6e-4f0f-93ac-9bc1.jpg"&gt;&lt;/P&gt;&lt;P&gt;I could sent you a backup of my DB and also my SF DB if you like.&lt;/P&gt;&lt;P&gt;3. This exception comes from time to time, when I see it again, I will send you screen-shot. &lt;/P&gt;&lt;P&gt;Thanks Ben...</description><pubDate>Tue, 15 Jan 2008 11:10:58 GMT</pubDate><dc:creator>George Nentidis</dc:creator></item><item><title>RE: Deploying a data package for a table with a timestamp column fails.</title><link>http://forum.strataframe.net/FindPost13450.aspx</link><description>1) Sorry, I wasn't aware of that bug... I will add it to the list of fixes for the next release... you are correct, you have to allow SQL Server to assign timestamp values.&lt;/P&gt;&lt;P&gt;2) When you receive that error, does it happen in a predictable manner, like "I always get the error when saving a table that has a UniqueIdentifier PK," or something like that?&lt;/P&gt;&lt;P&gt;3) Haven't seen that one before... does it happen consistently?&amp;nbsp; Or does it work fine one time and then fail the next?</description><pubDate>Tue, 15 Jan 2008 08:57:36 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Deploying a data package for a table with a timestamp column fails.</title><link>http://forum.strataframe.net/FindPost13446.aspx</link><description>Also sometimes when trying to deploy the package, either from my setup application or the DDT, I get a FileNotFound exception for the file c:\Users\geo.Protogramma\AppData\local\temp\microfour\metadata\DD_8_CustomerTypes.bin. The CustomerTypes is a data package. The name might change from time to time to different data packages.&lt;/P&gt;&lt;P&gt;I am a bug magnet... :doze:&lt;/P&gt;&lt;P&gt;I don't know if you can do anything about it but I thought you should know.</description><pubDate>Tue, 15 Jan 2008 08:49:58 GMT</pubDate><dc:creator>George Nentidis</dc:creator></item><item><title>RE: Deploying a data package for a table with a timestamp column fails.</title><link>http://forum.strataframe.net/FindPost13445.aspx</link><description>Also when trying to modify my tables from the DDT and try to save the changes, I get the error :&lt;/P&gt;&lt;P&gt;DataLayerSavingException&lt;BR&gt;&amp;nbsp; The INSERT statement conflicted with the FOREIGN KEY constraint "fk_indexes_indexfields". The conflict occurred in database "StrataFrame", table "dbo.DBEIndexes", column 'idx_pk'.&lt;BR&gt;The statement has been terminated.&lt;BR&gt;SqlException&lt;BR&gt;&amp;nbsp; The INSERT statement conflicted with the FOREIGN KEY constraint "fk_indexes_indexfields". The conflict occurred in database "StrataFrame", table "dbo.DBEIndexes", column 'idx_pk'.&lt;BR&gt;The statement has been terminated.&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : MicroFour StrataFrame Business&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlDataReader.get_MetaData()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Data.Common.DbCommand.ExecuteReader()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DbDataSourceItem.InternalExecuteReader(DbCommand Command, Boolean IsTransactional, String TransactionKey)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.SqlDataSourceItem.UpdateRow(QueryInformation QueryInfo, DataRow RowToUpdate, ConcurrencyExceptionHandler ConcurrencyHandler, AddRowErrorHandler RowErrorHandler, Boolean RecreateCommand)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DbDataSourceItem.UpdateRow(QueryInformation QueryInfo, DataRow RowToUpdate, ConcurrencyExceptionHandler ConcurrencyHandler, AddRowErrorHandler RowErrorHandler)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.DataLayer.UpdateDataTableThread(Object ThreadParams)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.Save(Boolean Transactional, String TransactionKey)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Business.BusinessLayer.Save()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.TableStructure.CreatePrimaryKeyIndex()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.Data.TableStructure.TableStructure_AfterSave(AfterSaveUndoByFormEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InvokeAfterSave(AfterSaveUndoByFormEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.RaiseAfterSaveEvent(AfterSaveUndoByFormEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Save(Boolean Transactional, String TransactionKey)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.Save()&lt;BR&gt;&amp;nbsp;&amp;nbsp; at MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnFormClosing(FormClosingEventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Forms.Form.CheckCloseDialog(Boolean closingOnly)&lt;BR&gt;</description><pubDate>Tue, 15 Jan 2008 08:44:49 GMT</pubDate><dc:creator>George Nentidis</dc:creator></item></channel></rss>