SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SSIS and Import/Export (2005)
 Import Data error
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dayo73
Starting Member

6 Posts

Posted - 08/22/2007 :  06:25:31  Show Profile  Reply with Quote
Hi there

I am importing data from a database on one server to the same database (exactly the same table structure etc) on another server. I am specifying the data from certain tables on the source database which are completely empty on the destination database. The tables on the destination database each have a primary key column (Identity Specification = YES, Is Identity = YES, Identity Increment = 1, Identity Seed = 1, Not for Replication = YES).

The error i'm getting is as follows:

Error 0xc0202049: Data Flow Task: Failure inserting into the read-only column "GroupID".
(SQL Server Import and Export Wizard)

Error 0xc0202045: Data Flow Task: Column metadata validation failed.
(SQL Server Import and Export Wizard)

Error 0xc004706b: Data Flow Task: "component "Destination - YvGroup" (40)" failed validation and returned validation status "VS_ISBROKEN".
(SQL Server Import and Export Wizard)

Error 0xc004700c: Data Flow Task: One or more component failed validation.
(SQL Server Import and Export Wizard)

Error 0xc0024107: Data Flow Task: There were errors during task validation.
(SQL Server Import and Export Wizard)


I'm sure the most important error is the first one, "Data Flow Task: Failure inserting into the read-only column". Is this happening because i'm trying to import data into primary key columns that are usually populated by an auto incremented integer and is seeing it as read only?

How can I get round this?

Cheers

dayo73
Starting Member

6 Posts

Posted - 08/22/2007 :  08:34:10  Show Profile  Reply with Quote
Hi

I found the "Enable identity insert" checkbox when you click the "Edit Mappings" button next to each table in the import wizard.

So it got past that problem, but now its stopping when it comes to a timestamp column (in my last table), here is the error:

Error 0xc0202048: Data Flow Task: Attempting insertion into the row version column "Ts". Cannot insert into a row version column.
(SQL Server Import and Export Wizard)
Error 0xc0202045: Data Flow Task: Column metadata validation failed.
(SQL Server Import and Export Wizard)
Error 0xc004706b: Data Flow Task: "component "Destination 7 - YvUser" (527)" failed validation and returned validation status "VS_ISBROKEN".
(SQL Server Import and Export Wizard)
Error 0xc004700c: Data Flow Task: One or more component failed validation.
(SQL Server Import and Export Wizard)
Error 0xc0024107: Data Flow Task: There were errors during task validation.
(SQL Server Import and Export Wizard)

Is it not possible to manually insert into a timestamp column either? Is there a setting that will allow it?

Cheers
Go to Top of Page

dayo73
Starting Member

6 Posts

Posted - 08/23/2007 :  04:58:16  Show Profile  Reply with Quote
Hi

All fixed. In the edit mappings dialogue box of the data import wizard I selected ignore for the destination timestamp column, that way, the timestamps are genereated automatically when the rest of the record is entered.

Cheers
Go to Top of Page

fminns
Starting Member

2 Posts

Posted - 06/01/2010 :  09:41:51  Show Profile  Reply with Quote
Hi All

I'm getting the exact same errors as below, but sadly for me I don't even see a way to exclude the timestamp column to solve the issue? Anyone know why I can't see that option.

SQL Server 2005 btw.

Regards

Farren
Go to Top of Page

fminns
Starting Member

2 Posts

Posted - 06/01/2010 :  10:45:53  Show Profile  Reply with Quote
OK, I found it too now :-)
Go to Top of Page

Joselyne América
Starting Member

1 Posts

Posted - 06/30/2010 :  15:30:48  Show Profile  Reply with Quote
In OLE DB Destination select "table or view - fast load", select your table in "name of the table or the view" and check:

"""""" KEEP IDENTITY """"""""

I hope that helps
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 06/30/2010 :  15:53:58  Show Profile  Reply with Quote
You might want to learn about bcp

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

sanwin
Starting Member

India
1 Posts

Posted - 08/11/2010 :  04:44:23  Show Profile  Reply with Quote
quote:
Originally posted by fminns

OK, I found it too now :-)



Hi, can you please tell me where is that option. I am also getting that error. Here is snapshot of 'Edit mappings' window at my end

http://i37.tinypic.com/2ilzyp.jpg

Your help is appreciated.
Go to Top of Page

rehanhussain
Starting Member

Pakistan
1 Posts

Posted - 03/29/2012 :  03:10:05  Show Profile  Reply with Quote
This problem due to destination table has Identity ON. or remove cols from mapping has indentity ON.
Go to Top of Page

rogertranchez
Starting Member

1 Posts

Posted - 05/14/2012 :  10:55:30  Show Profile  Reply with Quote
Hello,

If you click on the Destination column under "column mappings", you will be able to see a dropdown box with two options: "<ignore>" and "timestamp"; Choose the first one.

Best regards,

Roger

quote:
Originally posted by sanwin

quote:
Originally posted by fminns

OK, I found it too now :-)



Hi, can you please tell me where is that option. I am also getting that error. Here is snapshot of 'Edit mappings' window at my end

http://i37.tinypic.com/2ilzyp.jpg

Your help is appreciated.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000