SSIS package not importing data for some files, even when entire package successful

Bill Park 0 Reputation points
2023-09-19T14:41:48.58+00:00

I am trying to import roughly 300 delimited UTF-8 txt files using SSMS 2019 into SQL Server 2016. However, around 88 of these files do not import any data, despite there being data in the original file. The entire package shows as successful and there are no yellow bang warnings in the package. I also used SSMS current version to import one of those files, but no data was imported and the job did not fail. Unfortunately, I cannot change the target SQL Server. What steps can I take to resolve this issue?

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,633 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,560 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yitzhak Khabinsky 25,846 Reputation points
    2023-09-19T15:00:37.7033333+00:00

    @Bill Park,

    *.csv/txt flat files always have host of problems where column delimiters, column separators, invisible characters like null terminators \0, special characters based on encoding, and line breaks are in the middle of the actual data. Or data elements are missing completely.

    The most reliable format for data feeds is XML enforced by an XSD. An XSD plays a role of a data contract between sender and receiver. It will guarantee proper data format/shape, data types, cardinality, and enforce data quality.

    SSIS has for that the following tasks:

    • XML Task, operation Validation.
    • XML Source Adapter.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.