Solved

SSIS  Conversion Error

Posted on 2013-01-18
4
2,250 Views
Last Modified: 2016-02-10
Hello

This is in reference to this previous question
http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_28000926.html



Due to some conversion issue, only 12 rows are getting to destination instead of 43 ...why?

I am getting is from output

Output says
SSIS package "Package.dtsx" starting.
SSIS package "Package.dtsx" starting.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x800470C8 at Data Flow Task, OLE DB Destination [198]: The external columns for component "OLE DB Destination" (198) are out of synchronization with the data source columns. The external column "OrderDate" needs to be updated.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x800470C8 at Data Flow Task, OLE DB Destination [198]: The external columns for component "OLE DB Destination" (198) are out of synchronization with the data source columns. The external column "OrderDate" needs to be updated.
Warning: 0x80049304 at Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's console.
Information: 0x40043006 at Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
Information: 0x402090DC at Data Flow Task, Flat File Source [161]: The processing of file "C:\incomingCSVFolder\testIncoming.csv" has started.
Information: 0x4004300C at Data Flow Task, SSIS.Pipeline: Execute phase is beginning.
Information: 0x402090DE at Data Flow Task, Flat File Source [161]: The total number of data rows processed for file "C:\incomingCSVFolder\testIncoming.csv" is 44.
Error: 0xC0202009 at Data Flow Task, OLE DB Destination [198]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80004005  Description: "Invalid character value for cast specification".
Error: 0xC020901C at Data Flow Task, OLE DB Destination [198]: There was an error with input column "Copy of Total" (778) on input "OLE DB Destination Input" (211). The column status returned was: "The value could not be converted because of a potential loss of data.".
Error: 0xC0209029 at Data Flow Task, OLE DB Destination [198]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "input "OLE DB Destination Input" (211)" failed because error code 0xC0209077 occurred, and the error row disposition on "input "OLE DB Destination Input" (211)" 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 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "OLE DB Destination" (198) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (211). 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.
Information: 0x40043008 at Data Flow Task, SSIS.Pipeline: Post Execute phase is beginning.
Information: 0x402090DD at Data Flow Task, Flat File Source [161]: The processing of file "C:\incomingCSVFolder\testIncoming.csv" has ended.
Information: 0x402090DF at Data Flow Task, OLE DB Destination [198]: The final commit for the data insertion in "component "OLE DB Destination" (198)" has started.
Information: 0x402090E0 at Data Flow Task, OLE DB Destination [198]: The final commit for the data insertion  in "component "OLE DB Destination" (198)" has ended.
Information: 0x4004300B at Data Flow Task, SSIS.Pipeline: "component "OLE DB Destination" (198)" wrote 12 rows.
Information: 0x40043009 at Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: Data Flow Task
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (4) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "Package.dtsx" finished: Failure.
0
Comment
Question by:Rayne
  • 3
4 Comments
 

Author Comment

by:Rayne
Comment Utility
Create table like this

CREATE TABLE.[dbo].[TestCSVUpload](

      [OrderDate][datetime] NULL,
      [Region][nvarchar](255) NULL,
      [Rep][nvarchar](255) NULL,
      [Item][nvarchar](255) NULL,
      [Units][numeric](18, 0) NULL,
      [Cost][numeric](18, 0) NULL,
      [Total][numeric](18, 0) NULL,

      
) ON [PRIMARY]

GO
0
 

Author Comment

by:Rayne
Comment Utility
Any Experts are welcome to answer this question :)
0
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
Comment Utility
Hi,
after having a look at the CSV as well as on your output and your table definition I would say that you have get the errors as your Total, cost and units are defined as numeric(18,0) but in your import file they have digits ;-)
Hence the error.
I do also think that the errors with the invalid char result from a not proper configured flat file import data source.

If you could attach the package the errors might be found more easily.

HTH
Rainer
0
 

Author Comment

by:Rayne
Comment Utility
Perfect Rainer :)

You were spot on!! Thank you for the indicator. Greatly appreciated

R
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

From time to time, for debugging and troubleshooting your flow at run time you’ll need to check if the variable has the correct value or not, there’re several ways to check for the value of the variables inside the flow, You can add Break Points, a …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now