Importing flat file into SQL Server using import and export wizard - sql

I am trying to import data using SQL import & export wizard. I am getting errors below. The data I am importing has NULL values. Can you please highlight me where i am getting it wrong?
Please errors statements below.
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Destination - SupplierDim.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination - SupplierDim.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Destination - SupplierDim" (50) failed with error code 0xC0209029 while processing input "Destination Input" (63). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.

At first, I'd troubleshoot it by having very small portion of a file, just a few rows, but perfect rows. And then see if that will cause an error.
At second, I'd save the package and run it in Visual Studio. It will be much easier to troubleshoot errors within SSIS package right there.
It is possible that you are trying to insert NULLs in a column, which does not allow nulls.
Look at all columns' properties when you use wizard: type/size/nullability
If it still won't work, VS is the way to go.
Here is a link on similar troubleshooting:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/260151a1-3deb-4d3c-a042-2087ab73982f/datalfow-error-detination-input-failed-with-error-code-0xc020907b?forum=sqlintegrationservices

Related

Issues with SQL import and colons

I am trying to import a tab-separated file with no text qualifiers that contains about 8 million records with 700 columns. The issue I am having is that there is a field that is causing the import to fail.
the output is:
Executing (Error)
Messages
Error 0xc02020a1: Data Flow Task 1: Data conversion failed. The data conversion for column "Assessment_District" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
(SQL Server Import and Export Wizard)
Error 0xc020902a: Data Flow Task 1: The "Source - view10_txt.Outputs[Flat File Source Output].Columns[ColumnName]" failed because truncation occurred, and the truncation row disposition on "Source - view10_txt.Outputs[Flat File Source Output].Columns[ColumnName]" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
(SQL Server Import and Export Wizard)
Error 0xc0202092: Data Flow Task 1: An error occurred while processing file "C:...\view10.txt" on data row 59.
(SQL Server Import and Export Wizard)
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - view10_txt returned error code 0xC0202092. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Typical annoyance in getting an import to work, but the reason is really odd. Through a process of elimination, I have figured out that occasionally this column has two colons in it i.e. ADAMS CNTY MTA 5 (CONCORD: MCKEE: BEVERLY & RICHFIELD) that I am trying to import into a varchar(100) field. if I remove one of the colons everything works.
Does anyone have any idea how to resolve this that does not involve manipulating the import file?

SSIS Excel Source error: [Excel Source [1]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005

I have a very simple SSIS Data Flow that Unions two Excel Sources together, does a small data conversion, and loads into a staging table.
However, my two Excel Sources are failing immediately as the Execute Phase begins.
I am only receiving the following nondescript errors:
[LA Report Source [627]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "LA Report Source" (627) returned error code 0xC0202009. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
[NOLA Report Source [640]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "NOLA Report Source" (640) returned error code 0xC0202009. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
This package had been working for several days, and suddenly started giving this error message a couple days ago, with no real changes to the data source.
In addition, when I go to preview the Excel Data Source, I get this weird error:
Any ideas? Using Visual Studio 2008.
I want to share the solution I came up with:
I was over-zealous with my SQL Query in the Excel Source. I had a WHERE filter on my select statement, which worked for a little while, but an anomaly in the data must have thrown something off - SSIS didn't like it at all.
I've removed the WHERE portion, just leaving the SELECT portion, and I've handled the filter with a Conditional Split instead. Problem solved!

SSIS/DTS error when exporting multiple tables

Im getting a weird issue here that when I run the Import/Export from MSSMS 2008R2 and export these 4 tables to an access database with the same table structures that it will error with below:
"- Copying to 'sdgrpmap' (Error) Messages Error 0xc0202009: Data Flow
Task 1: SSIS Error Code DTS_E_OLEDBERROR.
An OLE DB error has occurred. Error code: 0x80004005.
(SQL Server Import and Export Wizard) Error 0xc0209029: Data Flow
Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The
"input "Destination Input" (144)" failed because error code 0xC020907B
occurred, and the error row disposition on "input "Destination Input"
(144)" specifies failure on error. An error occurred on the specified
object of the specified component. There may be error messages posted
before this with more information about the failure.
(SQL Server Import and Export Wizard) Error 0xc0047022: Data Flow
Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput
method on component "Destination 2 - stdchp" (131) failed with error
code 0xC0209029 while processing input "Destination Input" (144). The
identified component returned an error from the ProcessInput method.
The error is specific to the component, but the error is fatal and
will cause the Data Flow task to stop running. There may be error
messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)"
Now I tried verifying the data is not an issue and verified that all the table mappings are correct and correct data types too but it still fails.
I narrowed it down by running each of the 4 table exports individually and each one worked just fine. But when I added all 4 back it failed again. I added 3 of the 4 and it still ran. The table "sdgrpmap" is the problem table when in the group of tables to export. Not sure why but googled all the error codes and they are wide ranging and not really on my issue.
Anyone know why one table would fail when run in a group of table exports but not by itself? Sounds like a locking or update issue and the access connection is set to shared but probably a sql server issue.
Thanks
Edit: Adding the report which shows that 3 tables wrote out the correct number of records but the 4th "stdchp" only wrote out 193 out of the 2622 records.
Executing (Success)
Copying to chapterorigin (Success) 16 rows transferred
Copying to sdgrpmap (Error) 40 rows transferred
Messages Error 0xc0202009: Data Flow Task 1: SSIS Error Code
DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code:
0x80004005. (SQL Server Import and Export Wizard) Error 0xc0209029:
Data Flow Task 1: SSIS Error Code
DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "Destination Input"
(144)" failed because error code 0xC020907B occurred, and the error
row disposition on "input "Destination Input" (144)" specifies failure
on error. An error occurred on the specified object of the specified
component. There may be error messages posted before this with more
information about the failure. (SQL Server Import and Export Wizard)
Error 0xc0047022: Data Flow Task 1: SSIS Error Code
DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component
"Destination 2 - stdchp" (131) failed with error code 0xC0209029 while
processing input "Destination Input" (144). The identified component
returned an error from the ProcessInput method. The error is specific
to the component, but the error is fatal and will cause the Data Flow
task to stop running. There may be error messages posted before this
with more information about the failure. (SQL Server Import and
Export Wizard)
Copying to stdchp (Stopped)
Copying to stdpdrpanelmap (Stopped)
Post-execute (Success) Messages
Information 0x4004300b: Data Flow Task 1: "component "Destination - chapterorigin" (22)" wrote 16 rows.
(SQL Server Import and Export Wizard)
Information 0x4004300b: Data
Flow Task 1: "component "Destination 1 - sdgrpmap" (66)" wrote 40
rows. (SQL Server Import and Export Wizard)
Information 0x4004300b:
Data Flow Task 1: "component "Destination 2 - stdchp" (131)" wrote 193
rows. (SQL Server Import and Export Wizard)
Information 0x4004300b:
Data Flow Task 1: "component "Destination 3 - stdpdrpanelmap" (201)"
wrote 4853 rows. (SQL Server Import and Export Wizard)
I think it's failing because of data in tables.
If you are combining data from all four tables and putting in one table then destination table should support requirement for all 4 tables.
It's down to -
Null values are allowed or not
data types and field size
You can implement re-direct bad rows logic in your package so that you can have bad data(if there is any). Also with the help of derived column, process null values.

Unsure on errors exporting MS SQL 2008 table to Excel

I have joined together a few tables in my database and I'm not trying to export that joined table to an Excel spreadsheet to be imported into another DB. However its throwing me an error I don't understand (my knowledge of SQL is limited)
Here is the error:
Copying to `RDBMissingCandidates` (Error)
Messages
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft JET Database Engine" Hresult: 0x80004005 Description: "Spreadsheet is full.".
(SQL Server Import and Export Wizard)
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Destination - RDBMissingCandidates.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination - RDBMissingCandidates.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Destination - RDBMissingCandidates" (76) failed with error code 0xC0209029 while processing input "Destination Input" (87). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
(SQL Server Import and Export Wizard)
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - RDBMissingCandidates returned error code 0xC02020C4. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
The problem was down to the amount of data trying to be exported to excel. It was to much for it to handle. I wrote a query which exported the rows in chunks of 10,000. I now have achieved was I set out too.

Importing Excel spreadsheet into sql as a table error

I am trying to import an excel spreadsheet into a new table in SQL, but when I try to do the aforementioned, I get an error I believe it is a datetime format error but I have tried changing it and still get it can anyone help below is the table.
`Copying to 'Drawings and Documents register$' (Error)
Messages
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x00040EDA.
(SQL Server Import and Export Wizard)
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "Destination Input" (70)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (70)" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Destination - 'Drawings and Documents register$'" (59) failed with error code 0xC0209029 while processing input "Destination Input" (70). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
(SQL Server Import and Export Wizard)
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - 'Drawings and Documents register$'" (1) returned error code 0xC02020C4. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
It can be a number of things that went wrong, have your tried your import on a single row that has validated data ?
You could be trying to insert a string into a integer column or a Null-value into a column that does not allow Nulls...