dbTalk Databases Forums  

DTS Scheduled Job Data Warehouse Update

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss DTS Scheduled Job Data Warehouse Update in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jael
 
Posts: n/a

Default DTS Scheduled Job Data Warehouse Update - 11-04-2003 , 05:10 AM






The statement has been terminated. (Microsoft OLE DB
Provider for SQL Server (80040e2f): INSERT statement
conflicted with COLUMN FOREIGN KEY
constraint 'FK_fctSales_dmProduct'. The conflict occurred
in database 'MgkOlap', table 'dmProduct',
column 'item_code'.)
Package failed because Step 'DTSStep_DTSExecuteSQLTask_8'
failed.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS Scheduled Job Data Warehouse Update - 11-04-2003 , 05:27 AM






I can only presume that this is an error message you are receiving and that
you want help as there would seem to be no preamble to the post. A small
explanation is helpful but in this case the error message says it all.

In your destination You have a fact table which you are trying to insert
into. The fact table has FK relationships with the dimensions. The
dimension you are having trouble with is dmProduct. You are trying to
insert a value into the FK in the fact table that does not relate to
anything in the dimension

Example

CREATE TABLE Parent (col1 int primary key)

CREATE TABLE CHILD (col1 int primary KEY, ParentCol1 int references
Parent(col1))

GO



INSERT CHILD(Col1, ParentCol1) VALUES(1,1)

**ERROR**

INSERT statement conflicted with FOREIGN KEY constraint
'FK__CHILD__ParentCol__33D4B598'. The conflict occurred in database 'pubs',
table 'Parent', column 'col1'

**--



Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Jael" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
The statement has been terminated. (Microsoft OLE DB
Provider for SQL Server (80040e2f): INSERT statement
conflicted with COLUMN FOREIGN KEY
constraint 'FK_fctSales_dmProduct'. The conflict occurred
in database 'MgkOlap', table 'dmProduct',
column 'item_code'.)
Package failed because Step 'DTSStep_DTSExecuteSQLTask_8'
failed.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.