Hi all,
I’ve got this issue that has me a little confused.
When I try to bulk load (with truncate -> nightly rebuild) one of our reporting tables, I keep getting this SQL Right Truncation error on SQL Server 2012:
7284 6472 RUN-051017 3/03/2014 8:28:40 p.m. |Data flow DF_Fact_Booking_Breakdown_Rebuild|Loader Calculate_Measures_TABLE_001
7284 6472 RUN-051017 3/03/2014 8:28:40 p.m. Warning: Bulk loading into table <F> failed with input row data
7284 6472 RUN-051017 3/03/2014 8:28:40 p.m. <13344444_288383838_AE,9go0T6TYzdsR6aBj6bsDNA==,1431,3690,NULL,20110416,20110416,20110416,19800101,19800101,0.5428,0.5428,97.161
7284 6472 RUN-051017 3/03/2014 8:28:40 p.m. 2,0.0000,97.1612,0.0000,0.0000,0.0000,14.5742,0.0000,0.0000,0.0000,2012.10.14 09:08:36,2012.10.09 17:29:06>.
There are a bunch of them, in a DF that processes 15+ million records.
Okay I thought - so, something doesn’t quite ‘fit’, I can sort that out?
But I can’t seem to find the offending column(s). All the data seems to perfectly fit with the data types in the table. All these decimal values go into DECIMAL(19,4) columns and the character strings go to into VARCHAR2(64) columns and the dates into DATETIME2 columns.
I’ve created a duplicate of that table structure in the development database. I took a few of the error records and did a manual INSERT INTO using the same data as captured in the Data Services logs. And no problem or warning or error whatsoever?
When I change the Data Flow to either pushdown to the database (by generating a large INSERT INTO statement) or by forcing it to flow through the Job Server, it reports no issues whatsoever.
However, I prefer to be using the bulk load feature - but how do I determine what the problem really is? And is there a problem to begin with or is this some odd behaviour associated with the bulk loader?
ErikR (BOB member since 2007-01-10)