dbTalk Databases Forums  

DTS issue

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS issue in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jude_44
 
Posts: n/a

Default DTS issue - 07-24-2009 , 03:30 AM






Details are as follows:

Package versions:

Microsoft SQL Server Integration Services Designer Version 9.00.4035.00
Microsoft Visual Studio 2005 Version 8.0.50727.42
Microsoft .NET Framework Version 2.0.50727 SP2

We have an SSIS package which uploads an xml file. There are a number of
tasks that perform basic validation and business logic tests before uploading
the file into the database. One of these tasks fails on about 2/10000 files.
This task creates a data-table and loops through the xml, performs some
checks and adds a row to the data-table if certain business rules are met. In
the case of the files that are failing, they each fail at the same point in
the code. The line of code is trying to add an item to the table. We can
force an insert into the table without error if we run the code in debug and
stop it directly above the ‘Insert’ line of code – this does not cause an
error but allowing the code to continue will throw the error.


Error Message:
DTS Script Task has encountered an exception in user code:
Project name: ScriptTask_980022ca904a4fd09e3463f14589240a
Min (1) must be less than or equal to max (10) in a Range object.
at System.Data.Select.GetBinaryFilteredRecords()
at System.Data.Select.SelectRows()
at System.Data.DataTable.Select(String filterExpression)
at ScriptTask_980022ca904a4fd09e3463f14589240a.Script Main.Main() in
dts://Scripts/ScriptTask_980022ca904a4fd09e3463f14589240a/ScriptMain:line 332


If you need any more info, please ask.

Thanks in advance
David

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.