OiO.lk Blog SQL Unable to publish data into SQL server using SSIS
SQL

Unable to publish data into SQL server using SSIS


I am trying to publish a locally stored csv table to SQL server using SSIS. I have created a table in SQL server using the below query on SSMS.

use sample_superstore

drop table dbo.orders;

create table dbo.orders(
"Order_ID" varchar(50)
,   "Order_Date" date NULL
,   "Ship_Date" date NULL
,   "Ship_Mode" varchar (50)
,   "Customer_ID" varchar (50)
,   "Country" varchar (50)
,   "City" varchar (50)
,   "Product_ID" varchar (50)
,   "Category" varchar (50)
,   "Sub-Category" varchar (50)
,   "Product_Name" nvarchar (150)
);

select * from dbo.orders;

I am getting the below error:
Error: 0xC020901C at Upload Data, OLE DB Destination [62]: There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[Order Date] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "The value could not be converted because of a potential loss of data.".
Error: 0xC0209029 at Upload Data, OLE DB Destination [62]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "OLE DB Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC0209077 occurred, and the error row disposition on "OLE DB Destination.Inputs[OLE DB 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 at Upload Data, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "OLE DB Destination" (62) failed with error code 0xC0209029 while processing input "OLE DB Destination Input" (75). 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.

I need some help with this.

Thank you.

To tried resolving this by changing the data type to DT_DATE.



You need to sign in to view this answers

Exit mobile version