Avatar of sqlcurious
Flag for United States of America asked on

Delimiter issue in SSIS package

I run an SSIS package to create a .txt file on to an FTP server and the delimiter I use is a pipe delimeter:

I have to import this file into a third party too and I get this error message: invalid field count

196      196      Invalid field count: expected 17 fields but found 10      [203822][1][903510001][Accessories][331000][0][Uncertified][5000][1/8/8/0/9/18809622][  Edition Red, White & Blue Crystal Minaudiere]
197      197      Invalid field count: expected 17 fields but found 1      [<BR> Condition: 1]
198      198      Invalid field count: expected 17 fields but found 8      [<][][1][][0][0][37][collection]

I can't use any other delimiter because of the nature of the file. Can you provide any suggestions please
FTPMicrosoft SQL ServerSSIS

Avatar of undefined
Last Comment

8/22/2022 - Mon

There must be some chars in the output in my opinion that "breaks" the record by fake EOL pointer so when you say that  
I have to import this file into a third party
In my opinion you must find out from the "third party" if:
- are they accepting UNICODE or not and if yes on the "Flat File Destination" you must check the "Unicode" bos and provide the appropriate Code Page the third party needs.
- what is the "Text Qualifier" accepted by third party? Some they have double quotes so set that on the "Flat File Destination" dialog under the "Format"
- what is the "Row delimiter" that third party accepts and set it on the "Row delimiter" dialog if it is different that default CR/LF
- obviously set the "Column delimiter to "Vertical Bar" or pipe as you need it.

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck