﻿<?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  » Non-negative number required</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 17 May 2026 10:03:34 GMT</lastBuildDate><ttl>20</ttl><item><title>Non-negative number required</title><link>http://forum.strataframe.net/FindPost30993.aspx</link><description>I've created a method in C# which is using the DatabaseMigrator class to update a database from a StrataFrame generated package.&lt;br/&gt;&lt;br/&gt;&lt;div&gt;------------------------------------------------------------------------------------------------------------&lt;div&gt;Here is a code snippet:&lt;div&gt;try&lt;div&gt;{&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;div&gt;DatabaseMigrator _dbMigrator = null;&lt;div&gt;_dbMigrator = InitializeDatabaseMigrator(new Isync(), _dbMigrator);&lt;div&gt;DatabaseTargetName dbToUpdate = new DatabaseTargetName("XXXX");&lt;div&gt;dbToUpdate.NameOnServer = "YYYY";&lt;div&gt;_dbMigrator.DeployMetaData("C:\Packages\Database.pkg","", new DatabaseTargetName[] { dbToUpdate });&lt;/blockquote&gt;&lt;div&gt;}&lt;div&gt;catch(Exception ex)&lt;div&gt;{&lt;div&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;div&gt;throw ex;&lt;/blockquote&gt;&lt;div&gt;}&lt;div&gt;------------------------------------------------------------------------------------------------------------&lt;br/&gt;&lt;br/&gt;&lt;div&gt;I've debugged the method and in the last line, when the DeployMetaData method is begin called, an exception is being given with the following message:&lt;div&gt;&lt;div&gt;&lt;strong&gt;Exception Message: Non-negative number required.&lt;/strong&gt;&lt;div&gt;&lt;strong&gt;Parameter name: value&lt;/strong&gt;&lt;div&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;div&gt;Can you please help and suggest why this is exception is being thrown?</description><pubDate>Thu, 01 Mar 2012 08:06:52 GMT</pubDate><dc:creator>Melvin Xuereb</dc:creator></item><item><title>RE: Non-negative number required</title><link>http://forum.strataframe.net/FindPost30994.aspx</link><description>Hi Melvin.&lt;br/&gt;&lt;br/&gt;Can you post the stack trace?&lt;br/&gt;Also, have you tried deploying this same package using the DDT and then having a look where it breaks and what the log file says?&lt;br/&gt;My first guess without any more information would be a change made to a table that is part of a Data Deployment Package.</description><pubDate>Thu, 01 Mar 2012 08:06:52 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>