I've the following table created:
CREATE TABLE [dbo].[DIM_PRODUCT](
[product_id] [int] IDENTITY(1,1) NOT NULL,
[product_name] [varchar](60) NOT NULL,
CONSTRAINT [PK_DIM_PRODUCT] PRIMARY KEY CLUSTERED
(
[product_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
Now, I'm using SSIS 14 in order to load data into Dimension Table. I'm just using two objects that extract the data from Staging Area (an OLE DB SOURCE) and load into Dimension Table (using and OLE DB DESTINATION).
For the product_name I'm looking for the corresponding field and for the product_id I'm putting ignore.
And I'm getting the following error:
[OLE DB Destination [35]] Error: There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[PRODUCT] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "The value violated the integrity constraints for the column.".
I know the error is because it trying to insert the ID as null and I try to avoid this issue checking the options: - Keep Identity - Keep Nulls
But I'm still getting this error...