dbTalk Databases Forums  

DTS Failed

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


Discuss DTS Failed in the microsoft.public.sqlserver.dts forum.



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

Default DTS Failed - 05-16-2005 , 01:32 AM






Hi experts,

Hope someone can guide me on this problem. I'm trying to import mytext1.txt
into
myDB table mytable1. During the import process I received this message:-

Copy data from mytext to myDB.dbo.mytable1 step

Error at Destination for Row 446109. Errors encountered so far in this task: 1
The statement has been terminated.
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_ACN'.
The conflict occured in database myDB, table 'MYOTHERTABLE', column 'ACN'

TQ.

Reply With Quote
  #2  
Old   
Chandra
 
Posts: n/a

Default RE: DTS Failed - 05-16-2005 , 02:04 AM






Hi
The reason for this is due to a Referential Integrity failure.

You might be trying to enter a value into the Foreign Key table, with out
the corresponding entry in the Master Table.

Please enter a value in the Master Table and try again.


--
best Regards,
Chandra
http://chanduas.blogspot.com/
http://groups.msn.com/SQLResource/
---------------------------------------



"GW" wrote:

Quote:
Hi experts,

Hope someone can guide me on this problem. I'm trying to import mytext1.txt
into
myDB table mytable1. During the import process I received this message:-

Copy data from mytext to myDB.dbo.mytable1 step

Error at Destination for Row 446109. Errors encountered so far in this task: 1
The statement has been terminated.
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_ACN'.
The conflict occured in database myDB, table 'MYOTHERTABLE', column 'ACN'

TQ.

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

Default Re: DTS Failed - 05-17-2005 , 01:51 PM



The error message says it all really.

You have inserted a row into a child table with a foreign key reference
to a parent table with primary key for which there is no matching
primary key value for the foreign key value inserted.

You should insert the parent table first OR you should import the text
file to a staging table and then match the intended foreign key values
with the existing Primary Key values

Allan



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


Quote:
Hi experts,

Hope someone can guide me on this problem. I'm trying to import mytext1.txt
into
myDB table mytable1. During the import process I received this message:-

Copy data from mytext to myDB.dbo.mytable1 step

Error at Destination for Row 446109. Errors encountered so far in this task: 1
The statement has been terminated.
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_ACN'.
The conflict occured in database myDB, table 'MYOTHERTABLE', column 'ACN'

TQ.


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.