dbTalk Databases Forums  

Data Pump Task Failing on identity column

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


Discuss Data Pump Task Failing on identity column in the microsoft.public.sqlserver.dts forum.



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

Default Data Pump Task Failing on identity column - 08-08-2005 , 04:57 AM






Hi,

I have a DTS package which is used to move data between two SQL Server 2000
databases. My destination table has an identity column. I have a few Lookups
defined in the data pump task. My data pump task has three transformations
defined, one of which is a copy column and two are ActivX Script
transformation.

I have not used the Identity column in any of the transformation as I intend
it to be autogenerated.

The problem is that while i execute the datapump task, it fails saying
Integrity violation; attempt to insert NULL data or data that violates
constraints.

I ran a SQL Profiler trace and found that the dataPump task is trying to
insert a NULL into my identity column. Why is this hapenning even though I
have not used that particular column in my transformation.

Not only this, the task tries to insert NULLs in any column that is not used
in any of the transformation.

Thanks in advance for any help.


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

Default Re: Data Pump Task Failing on identity column - 08-08-2005 , 01:30 PM






You could probably benefit from this article.

Problems With IDENTITY() and the DataPump task.
(http://www.sqldts.com/default.aspx?293)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Vikram Kamath" <VikramKamath (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I have a DTS package which is used to move data between two SQL Server
2000
databases. My destination table has an identity column. I have a few
Lookups
defined in the data pump task. My data pump task has three transformations
defined, one of which is a copy column and two are ActivX Script
transformation.

I have not used the Identity column in any of the transformation as I
intend
it to be autogenerated.

The problem is that while i execute the datapump task, it fails saying
Integrity violation; attempt to insert NULL data or data that violates
constraints.

I ran a SQL Profiler trace and found that the dataPump task is trying to
insert a NULL into my identity column. Why is this hapenning even though I
have not used that particular column in my transformation.

Not only this, the task tries to insert NULLs in any column that is not
used
in any of the transformation.

Thanks in advance for any help.




Reply With Quote
  #3  
Old   
Rick Gittins
 
Posts: n/a

Default Re: Data Pump Task Failing on identity column - 08-11-2005 , 04:29 PM



Do you have the AutoIncrement set to yes on you identity column?

Rick

"Vikram Kamath" <VikramKamath (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I have a DTS package which is used to move data between two SQL Server
2000
databases. My destination table has an identity column. I have a few
Lookups
defined in the data pump task. My data pump task has three transformations
defined, one of which is a copy column and two are ActivX Script
transformation.

I have not used the Identity column in any of the transformation as I
intend
it to be autogenerated.

The problem is that while i execute the datapump task, it fails saying
Integrity violation; attempt to insert NULL data or data that violates
constraints.

I ran a SQL Profiler trace and found that the dataPump task is trying to
insert a NULL into my identity column. Why is this hapenning even though I
have not used that particular column in my transformation.

Not only this, the task tries to insert NULLs in any column that is not
used
in any of the transformation.

Thanks in advance for any help.




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.