dbTalk Databases Forums  

DTS Package Error

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


Discuss DTS Package Error in the microsoft.public.sqlserver.dts forum.



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

Default DTS Package Error - 04-28-2006 , 04:11 PM






Receiveing the following message:

Error Description: The number of failing rows exceeds the maximum
specified. Insert error, column 7 ('PERIOD_END', DBTYPE_DBTIMESTAMP), status
6: Data overflow. Invalid character value for cast specification.

The DTS package this error was received on does nothing more than extract a
file from a UniData database into Sequel. The file contains dates and
amounts.

Does sequel not allow importing a date greater than a certain date?

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS Package Error - 04-29-2006 , 08:33 AM






Hello DONNA,


There are date ranges for data types and they are listed here. Chances are
you are outside of the range

http://doc.ddart.net/mssql/sql70/da-db_9.htm

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Receiveing the following message:

Error Description: The number of failing rows exceeds the maximum
specified. Insert error, column 7 ('PERIOD_END', DBTYPE_DBTIMESTAMP),
status 6: Data overflow. Invalid character value for cast
specification.

The DTS package this error was received on does nothing more than
extract a file from a UniData database into Sequel. The file contains
dates and amounts.

Does sequel not allow importing a date greater than a certain date?




Reply With Quote
  #3  
Old   
Michael
 
Posts: n/a

Default Re: DTS Package Error - 07-26-2006 , 12:15 PM



I have a similar problem; extracting data from an AS400. Where dates should
be null if there is nothing to store, by default it's recording '0001-01-01'.
When my DTS sees this, it fails. I tried creating an ActiveX/VBScript,
however it still doesn't seem to be working. Any suggestions on how to check
for valid dates and copying them over, otherwise populate as NULL?

Copy of DTS CODE
'************************************************* *********************
' Visual Basic Transformation Script
' Copy each source column to the
' destination column
'************************************************* ***********************

Function Main()

dim c_PPDCDT

DTSDestination("DOCTYP") = DTSSource("DOCTYP")
DTSDestination("DOCNBR") = DTSSource("DOCNBR")

'================================================
c_PPDCDT = DTSSource("PPDCDT")
IF IsDate(c_PPDCDT) = 1 THEN DTSDestination("PPDCDT") = DTSSource("PPDCDT")
ELSE DTSDestination("PPDCDT") = NULL
'================================================
Main = DTSTransformStat_OK

End Function


Thanks,

Michael

"Allan Mitchell" wrote:

Quote:
Hello DONNA,


There are date ranges for data types and they are listed here. Chances are
you are outside of the range

http://doc.ddart.net/mssql/sql70/da-db_9.htm

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Receiveing the following message:

Error Description: The number of failing rows exceeds the maximum
specified. Insert error, column 7 ('PERIOD_END', DBTYPE_DBTIMESTAMP),
status 6: Data overflow. Invalid character value for cast
specification.

The DTS package this error was received on does nothing more than
extract a file from a UniData database into Sequel. The file contains
dates and amounts.

Does sequel not allow importing a date greater than a certain date?





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.