Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2006, 03:06 PM
Registered User
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default invalid column length message

I am trying to load an ASCII file with only a linefeed indicator using fixed column markers and skipping the first row. Defining the file works fine. but when I try to preview the same source in the transformation I get an invalid column length message.

Does anyone know what the problem (and solution) is?
 
Old July 23rd, 2006, 12:46 PM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 146
Thanks: 0
Thanked 1 Time in 1 Post
Default

Is this DTS or SSIS?
Post your file schema (a few example lines).
If DTS, I presume you are using a Data pump task and the destination is SQL Server.
Give a little more info please

David Lundell
Principal Consultant and Trainer
www.mutuallybeneficial.com
 
Old July 31st, 2006, 10:18 AM
Registered User
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

David,

This is a DTS problem.

I am enclosing the first five text lines. The input file is a text file.
I'm defining 29 fixed length columns and have editted the original
file to create a carriage control at the 140th position. I define
the fixed length columns in the properties tab for the text file source with no problems, but when I go to the properties in the Transform Data Task and select source I get the 'invalid column lengt' message. I am not able to view the file from that tab even though I can see it in the properties of the text file source.

Den

B0018001055102 000115500 000519750000 0627200626178006505250 C00000000 A100000 00000 %100 00000000
B001800130H105 000058200 000116400000 0627200626178000205250 C00000000 A100000 00000 %100 00000000
B001800206R102 000263900 000712530000 0627200626178000305250 C00000000 A100000 00000 %100 00000000
B001800206R102 000189000 000510300000 0628200626179001905250 C00000000 A100000 00000 %100 00000000
B001800206R102 000088000 000237600000 0705200626186000905300 C00000000 A100000 00000 %100 00000000


 
Old August 5th, 2006, 12:49 PM
Registered User
 
Join Date: Jul 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When you delimit the fixed fields it is possible to mark the start of the record as a column but then DTS sees it as an invalid length. As soon as I removed that mark, the problem was solved.

There's no other way to enter an invalid length - double clicking the same column removes the delimiter, it doesn't create two.

Interesting that Microsoft came up with an error message but didn't make it impossib;e to delimit at the start of the record.



There are 10 kinds of people in the world - those that understand binary and those that don't.





Similar Threads
Thread Thread Starter Forum Replies Last Post
invalid data string or buffer length?? dlacloche Classic ASP Basics 1 July 21st, 2008 03:40 PM
Problem to find Column Length in vb.net sachinbashetti VB Databases Basics 0 September 20th, 2005 07:29 AM
problem with Invalid column name 'TX'. bleutiger Classic ASP Databases 1 February 1st, 2005 02:35 PM
How to get the "Length" of a column Guillermo Hdez ADO.NET 0 October 29th, 2004 07:31 AM
Query String Too Long....Max Length Error Message phungleon Classic ASP Databases 14 May 28th, 2004 12:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.